mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-04-06 18:36:50 +00:00
fix(legacy): revert universal2 expansion; Node side will handle via WATERFALL
Expanding universal2 into aarch64+x86_64 entries creates filename/arch mismatches: the filename still contains 'universal' so the Node classifier re-parses it as universal2, then sees arch=aarch64 and flags a mismatch. Keep universal2 as-is; the Node agent will add it to their WATERFALL.
This commit is contained in:
@@ -154,18 +154,6 @@ func ExportLegacy(pkg string, pd PackageData) (LegacyCache, LegacyDropStats) {
|
||||
stats.Formats++
|
||||
continue
|
||||
}
|
||||
// universal2 (macOS fat binary) → expand to aarch64 + x86_64.
|
||||
// Node.js doesn't know "universal2"; emitting both arches ensures
|
||||
// the binary is found for both Apple Silicon and Intel Mac clients.
|
||||
if a.Arch == "universal2" {
|
||||
arm := a
|
||||
arm.Arch = "aarch64"
|
||||
releases = append(releases, arm.toLegacy())
|
||||
intel := a
|
||||
intel.Arch = "x86_64"
|
||||
releases = append(releases, intel.toLegacy())
|
||||
continue
|
||||
}
|
||||
releases = append(releases, a.toLegacy())
|
||||
}
|
||||
if releases == nil {
|
||||
|
||||
Reference in New Issue
Block a user