-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS pkg written to same filename for x64 and arm64 #5847
Comments
Fixes #1076. For now we only build a DMG and zip for arm64, because the arm64 pkg would overwrite the x64 pkg (electron-userland/electron-builder#5847). Signed-off-by: Anders Kaseorg <anders@zulip.com>
Hi @andersk ! |
@mmaietta We already have |
Minimal reproduction: https://gist.github.com/andersk/590d4b064e9e07506d6747d7b3a6a977 $ git clone https://gist.github.com/andersk/590d4b064e9e07506d6747d7b3a6a977 empty-electron-app
$ cd empty-electron-app
$ yarn
$ yarn electron-builder --mac default --x64 --arm64
…
• building target=macOS zip arch=x64 file=dist/empty-electron-app-1.0.0.zip
• building target=DMG arch=x64 file=dist/empty-electron-app-1.0.0.dmg
…
• building target=macOS zip arch=arm64 file=dist/empty-electron-app-1.0.0-arm64.zip
• building target=DMG arch=arm64 file=dist/empty-electron-app-1.0.0-arm64.dmg
$ yarn electron-builder --mac pkg --x64 --arm64
…
• building target=pkg arch=x64 file=dist/empty-electron-app-1.0.0.pkg
…
• building target=pkg arch=arm64 file=dist/empty-electron-app-1.0.0.pkg |
Big thanks for the gist! Wish other tickets had those provided more often 🙂 I added the arch/pkg args to the build config and it repro'd there as well. Found the issue seems to only exist with I think I was able to identify the fix, can you try out this patch?
|
Yeah, that works for me.
|
…for build name otherwise it'll try to build x64 and arm64 with the same name (electron-userland#5847)
electron-builder --mac pkg --x64 --arm64
builds both the x64 pkg and the arm64 pkg, but it writes them both to the same filenameZulip-5.6.0.pkg
, so the latter immediately overwrites the former.I would expect the latter to go to
Zulip-5.6.0-arm64.pkg
, as already happens with DMG and zip.The text was updated successfully, but these errors were encountered: