- macOS 12+
- Xcode 26
- Homebrew
- Perl (for creating a
.dmgpackage) - Node.js
- Install Python 3 via Homebrew:
brew install python@3 - Install Python dependencies via
pip3:pip3 install httplib2==0.22.0 requests pillow- Note that you might need to use
--break-system-packagesif you don't want to use a dedicated Python environment for building Helium.
- Note that you might need to use
- Install Metal toolchain:
xcodebuild -downloadComponent MetalToolchain - Install Ninja via Homebrew:
brew install ninja - Install GNU coreutils and readline via Homebrew:
brew install coreutils readline - Unlink binutils to use the one provided with Xcode:
brew unlink binutils - Install Node.js via Homebrew:
brew install node - Restart your terminal.
First, ensure the Xcode application is open.
If you want to notarize the build, you need to have an Apple Developer ID and a valid Apple Developer Program membership. You also need to set the following environment variables:
MACOS_CERTIFICATE_NAME: The Full Name of the Developer ID Certificate you created (typeG2 Sub-CA (Xcode 11.4.1 or later)) in Apple Developer portal, e.g.: Developer ID Application: Your Name (K1234567)PROD_MACOS_NOTARIZATION_APPLE_ID: The email you used to register your Apple Account and Apple Developer ProgramPROD_MACOS_NOTARIZATION_TEAM_ID: Your Apple Developer Team ID, which can be found in the Apple Developer membership pagePROD_MACOS_NOTARIZATION_PWD: An app-specific password generated in the Apple ID account settingsPROD_MACOS_SPECIAL_ENTITLEMENTS_PROFILE_PATH: Path to the provisioning profile that allows you to use entitlements which need to be specifically approved by Apple (com.apple.developer.web-browser.public-key-credential,com.apple.developer.associated-domains.applinks.read-write).
If you don't have an Apple Developer ID to sign the build (or you don't want to sign it), you can simply not specify MACOS_CERTIFICATE_NAME.
git clone --recurse-submodules https://github.com/imputnet/helium-macos.git
cd helium-macosto switch to the desired release or development branch.
Finally, run the following (if you are building for the same architecture as your Mac, i.e. x86_64 for Intel Macs or arm64 for Apple Silicon Macs, or if you are building for arm64 on an Intel Mac and you set the appropriate build flag):
./build.shor, if you want to build for x86_64 on an Apple Silicon Mac:
./build.sh x86_64Once it's complete, a .dmg should appear in build/.
NOTE: If the build fails, you must take additional steps before re-running the build:
- If the build fails while downloading the Chromium source code, it can be fixed by removing
build/downloads_cacheand re-running the build instructions. - If the build fails at any other point after downloading, it can be fixed by removing
build/srcand re-running the build instructions.
Make sure your system meets the requirements and that you've installed all dependencies.
On top of basic dependencies, you'll need quilt to create/update patches:
brew install quilt-
Load the dev util script:
source dev.sh -
Setup the dev environment fully for the first time:
he setup
-
Build your first development binary:
he build
-
Run the development build with a dedicated data dir:
he run
-
Done! You have your own home-grown Helium ready for tinkering.
-
Go to the build dir:
cd build/src -
Create a new patch with quilt:
quilt new <path_to_patch>
-
Add files to this patch:
quilt add <path_to_file1> <path_to_file2>
- Note: path here is relative to
build/src
- Note: path here is relative to
-
Modify files, test them by building and running Helium.
-
When you're done, refresh the patch:
quilt refresh
-
Unmerge the patch series:
he unmerge
-
Commit the patch & series change to a new branch and make a PR!
To see all commands available in dev.sh, just run he.
Confused about quilt? Run man quilt to read more about its functionality.
-
Load the dev util script:
source dev.sh -
Download sources, set up GN, and prepare third-party dependencies:
he presetup
-
Update Rust toolchain (if necessary)
- Check the
RUST_REVISIONconstant in filesrc/tools/rust/update_rust.pyin build root.- As an example, the revision as of writing this guide is
22be76b7e259f27bf3e55eb931f354cd8b69d55f.
- As an example, the revision as of writing this guide is
- Get date for nightly Rust build from Rust's GitHub repository.
- The page URL for our example is
https://github.com/rust-lang/rust/commit/22be76b7e259f27bf3e55eb931f354cd8b69d55f- In this case, the corresponding nightly build date is
2025-06-23. - Adapt the version number in
downloads-{arm64,x86-64}{,-rustlib}.iniaccordingly.
- In this case, the corresponding nightly build date is
- The page URL for our example is
- Get the information of the latest nightly build and adapt configurations accordingly.
- Download the latest nightly build from the Rust website.
- For our example, the download URL for Apple Silicon Macs is
https://static.rust-lang.org/dist/2025-06-23/rust-nightly-aarch64-apple-darwin.tar.gz - For our example, the download URL for Intel Chip Macs is
https://static.rust-lang.org/dist/2025-06-23/rust-nightly-x86_64-apple-darwin.tar.gz
- For our example, the download URL for Apple Silicon Macs is
- Extract the archive.
- Execute
rustc/bin/rustc -Vin the extracted directory to get Rust version string.- For our example, the version string is
rustc 1.89.0-nightly (be19eda0d 2025-06-22).
- For our example, the version string is
- Adapt the content of
retrieve_and_unpack_resource.shandpatches/ungoogled-chromium/macos/fix-build-with-rust.patchaccordingly.
- Download the latest nightly build from the Rust website.
- Check the
-
Switch to src directory
cd build/src -
Use
quiltto refresh all patches:quilt push -a --refresh- If an error occurs, go to the next step. Otherwise, skip to Step 7.
-
Use
quiltto fix the broken patch:- Run
quilt push -f - Edit the broken files as necessary by adding (
quilt edit ...orquilt add ...) or removing (quilt remove ...) files as necessary- When removing large chunks of code, remove each line instead of using language features to hide or remove the code. This makes the patches less susceptible to breakages when using quilt's refresh command (e.g. quilt refresh updates the line numbers based on the patch context, so it's possible for new but desirable code in the middle of the block comment to be excluded.). It also helps with readability when someone wants to see the changes made based on the patch alone.
- Refresh the patch:
quilt refresh - Go back to Step 5.
- Run
-
After all patches are fixed, run
he version && he configureto finish build env setup. -
Build and run Helium to verify that everything functions as intended:
he build && he run -
Run
he validate configand resolve the error if it occurs. -
Run
he popto pop all applied patches. -
Validate that patches are applied correctly:
he validate config -
Unmerge main and platform patches:
he unmerge -
Ensure that patches and series are formatted correctly, e.g. no blank lines.
-
Check the consistency of the series file:
he validate series -
Use git to add changes and commit. Refer to recent commit history for an appropriate commit comment.