Skip to content
This repository has been archived by the owner on May 2, 2022. It is now read-only.

Use universal packaging on macOS #1511

Merged
merged 1 commit into from
Sep 10, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion dist.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ console.log(`Building for: ${process.platform} ${process.platform !== 'linux' ?
let targets;
switch (process.platform) {
case 'darwin': {
targets = Platform.MAC.createTarget(['zip', 'dmg'], Arch.x64, Arch.arm64);
// use Arch.universal because
// electron-updater 4.3.10 -> 4.5.1 has a bug preventing
// Intel-based Macs from updating if there exists Arch.arm64 builds
// https://github.com/electron-userland/electron-builder/pull/6212
targets = Platform.MAC.createTarget(['zip', 'dmg'], Arch.universal);
break;
}
case 'win32': {
Expand Down