(firefox) Add native ARM64 (win64-aarch64) support#2796
Merged
Conversation
This was referenced Jun 7, 2026
flcdrg
previously approved these changes
Jul 2, 2026
There was a problem hiding this comment.
Pull request overview
This PR updates the Firefox Chocolatey package to install the correct Mozilla Windows build based on the machine’s native OS architecture, enabling native Windows ARM64 (win64-aarch64) installs instead of falling back to x64 emulation.
Changes:
- Add an architecture→build map (
x86/x64/arm64) and select the correct installer at install time via a sharedGet-MozillaBuildhelper. - Extend the automatic update tooling to generate and propagate
win64-aarch64URL formats and checksums. - Add
win64-aarch64checksum rows toLanguageChecksums.csvand harden checksum matching to avoid64/64-aarch64cross-matches.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| automatic/firefox/update.ps1 | Plumbs Win64Arm64Format through both “latest” and “esr” streams for AU updates. |
| automatic/firefox/update_helper.ps1 | Adds GetMozillaUrlFormats, captures win64-aarch64 checksums, and updates URL replacement logic to be architecture-specific. |
| automatic/firefox/tools/LanguageChecksums.csv | Adds 64-aarch64 checksum rows per locale. |
| automatic/firefox/tools/helpers.ps1 | Updates checksum extraction to avoid cross-matching and introduces Get-MozillaBuild architecture resolver. |
| automatic/firefox/tools/chocolateyInstall.ps1 | Uses the architecture→build map and Get-MozillaBuild to select the correct URL/checksum at install time. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
|
Can you rebase and update the relevant files against the latest Firefox release? |
Detect the native OS architecture at install time and pick the matching
Mozilla build via an architecture -> build map (x86/x64/arm64), so Windows on
ARM installs the native win64-aarch64 build instead of the emulated x64 one.
- tools/chocolateyInstall.ps1: declare a per-package $builds map of
architecture -> @{ Url; Checksum } and resolve the build via a shared
Get-MozillaBuild helper. Resolution honors --forcex86 first, then the native
arch from Chocolatey's Get-OSArchitecture (correct even under x64 emulation),
falling back to x64 on older Chocolatey or when no arm64 checksum exists.
- tools/helpers.ps1 (shared with Thunderbird): GetChecksums also returns the
win64-aarch64 checksum (patterns anchored so 64 and 64-aarch64 rows can't
cross-match); add the shared Get-MozillaBuild architecture resolver; add the
UTF-8 BOM to match the repository convention for *.ps1 files.
- update_helper.ps1 (shared with Thunderbird): capture win64-aarch64 checksums
from Mozilla SHA512SUMS, version each URL by its os= token, and add a shared
GetMozillaUrlFormats emitting the x86/x64/arm64 URL formats.
- update.ps1: pass Win64Arm64Format through both streams.
- tools/LanguageChecksums.csv: add the win64-aarch64 checksum rows.
Verified installing the native arm64 build on Windows on ARM.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
dennisameling
force-pushed
the
firefox-arm64
branch
from
July 3, 2026 08:01
65f98d7 to
37756e9
Compare
Contributor
Author
|
Done, thanks! |
flcdrg
approved these changes
Jul 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Detect the native OS architecture at install time and pick the matching Mozilla build via an architecture -> build map (x86/x64/arm64), so Windows on ARM installs the native win64-aarch64 build instead of the emulated x64 one.
Verified installing the native arm64 build on Windows on ARM.
Motivation and Context
Companion PR to chocolatey/choco#3907 which aims to add native Windows arm64 support to Chocolatey.
How Has this Been Tested?
With a local build of a native arm64
choco.exe, I ran this command which resulted in a successful Firefox arm64 installation:Screenshot (if appropriate, usually isn't needed):
Types of changes
Checklist: