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

Commit dc5e792

Browse files
authored
Use universal packaging on macOS (#1511)
1 parent 358fc36 commit dc5e792

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dist.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ console.log(`Building for: ${process.platform} ${process.platform !== 'linux' ?
8181
let targets;
8282
switch (process.platform) {
8383
case 'darwin': {
84-
targets = Platform.MAC.createTarget(['zip', 'dmg'], Arch.x64, Arch.arm64);
84+
// use Arch.universal because
85+
// electron-updater 4.3.10 -> 4.5.1 has a bug preventing
86+
// Intel-based Macs from updating if there exists Arch.arm64 builds
87+
// https://github.com/electron-userland/electron-builder/pull/6212
88+
targets = Platform.MAC.createTarget(['zip', 'dmg'], Arch.universal);
8589
break;
8690
}
8791
case 'win32': {

0 commit comments

Comments
 (0)