Skip to content

Commit

Permalink
Force building of x64 binaries on mac M* chips. RE:natcap#1581
Browse files Browse the repository at this point in the history
  • Loading branch information
phargogh committed May 28, 2024
1 parent 2284cfb commit 75bbf47
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion workbench/electron-builder-config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
const { execFileSync } = require('child_process');

const OS = process.platform;
const ARCH = process.arch;

// github actions now defaults to ARM builds, so fall back to x64.
let ARCH;
if (OS === 'darwin') {
ARCH = 'x64';
} else {
ARCH = process.arch;
}
const EXT = OS === 'win32' ? 'exe' : 'dmg';

// Uniquely identify the changeset we're building & packaging.
Expand Down

0 comments on commit 75bbf47

Please sign in to comment.