Overview
Thedownloads.ini file configures the download of the official Chromium source code archive. This is the base source code that Helium patches and builds upon.
This file only handles the Chromium source archive. Additional dependencies are configured in deps.ini.
File Format
The file uses INI format with a single[chromium] section:
Configuration Fields
Basic Fields
Download URL for the Chromium source archive. Uses the
-lite variant which excludes Git history to reduce download size.Variable substitution: %(_chromium_version)s is automatically replaced with the target Chromium version.Filename to use when saving the downloaded archive locally.Format:
chromium-%(_chromium_version)s-lite.tar.xzRelative path where the source code should be extracted. Use
./ for the source root directory.Top-level directory name to strip from the archive. The official Chromium archives contain a
chromium-VERSION directory.Example: chromium-%(_chromium_version)sHash Verification
Special field for fetching and verifying the archive hash. Uses a pipe-delimited format:
- identifier: Internal name (e.g.,
chromium) - filename: Name of the hash file (e.g.,
chromium-VERSION-lite.tar.xz.hashes) - url: Full URL to download the hash file
Automatic Variables
Variables beginning with underscore are provided by the build system:The target Chromium version being built. This is read from the build configuration and automatically substituted.Example:
133.0.6943.137Example Configuration
Chromium Archive Variants
Chromium provides two archive types:Standard
Format:
chromium-VERSION.tar.xzIncludes full Git history and all development files. Much larger download (5-10 GB).Lite
Format:
chromium-VERSION-lite.tar.xzExcludes Git history. Smaller and faster to download (2-3 GB). Recommended for Helium builds.Helium uses the
-lite variant to reduce build setup time and disk usage.Hash Verification Process
The build system performs the following steps:Download Source
Chromium source archives are hosted on Google Cloud Storage:- Official release archives for all Chromium versions
- Corresponding
.hashesfiles for verification - Both standard and
-litevariants
Updating Chromium Version
To update to a new Chromium version:Update version variable
Modify the
_chromium_version variable in your build configuration (typically in a separate version file or build script).No changes needed
The
downloads.ini file uses automatic substitution, so no changes are needed here.Troubleshooting
Download fails with 404
Download fails with 404
The specified Chromium version may not exist. Verify the version number and check the Chromium release schedule.
Hash verification fails
Hash verification fails
The downloaded archive may be corrupted. Delete the cached download and try again. If the issue persists, the CDN may be serving a corrupted file.
Extraction fails
Extraction fails
Ensure
strip_leading_dirs matches the actual directory name in the archive. You can inspect the archive:Related Configuration
- deps.ini - Additional dependencies downloaded after Chromium
- flags.gn - Build configuration flags
- patches/series - Patches applied to Chromium source