Skip to content

Commit ca69a2b

Browse files
authored
pass arch to electron packaging (keybase#25372)
1 parent 9213a5f commit ca69a2b

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

‎packaging/desktop/package_darwin.sh‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ s3host=${S3HOST:-}
1717
istest=${TEST:-}
1818
skip_notarize=${SKIP_NOTARIZE:-}
1919
arch=${ARCH:-"amd64"}
20+
electron_arch="x64"
2021
platform=${PLATFORM:-"darwin"}
22+
if [ "$arch" = "arm64" ]; then
23+
electron_arch = "arm64"
24+
fi
2125

2226
if [ ! "$bucket_name" = "" ] && [ "$s3host" = "" ]; then
2327
# Use this syntax since bucket_name might have dots (.)
@@ -199,7 +203,7 @@ package_electron() {(
199203
rm -rf "$shared_dir/node_modules"
200204

201205
yarn install --pure-lockfile --ignore-engines
202-
yarn run package -- --appVersion="$app_version" --comment="$comment" --icon="$icon_path" --saltpackIcon="$saltpack_icon" --outDir="$build_dir"
206+
yarn run package -- --appVersion="$app_version" --comment="$comment" --icon="$icon_path" --saltpackIcon="$saltpack_icon" --outDir="$build_dir" --arch="$electron_arch"
203207

204208
# Create symlink for Electron to overcome Gatekeeper bug https://github.com/keybase/go-updater/pull/4
205209
cd "$out_dir/$app_name.app/Contents/MacOS"

‎shared/desktop/package.desktop.tsx‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,6 @@ async function startPack() {
203203
rimraf.sync(desktopPath('release'))
204204

205205
let aps = [[platform, arch]]
206-
if (platform === 'darwin') {
207-
aps = [
208-
['darwin', 'x64'],
209-
['darwin', 'arm64'],
210-
]
211-
}
212206
await Promise.all(
213207
aps.map(async ([plat, arch]) => {
214208
try {

0 commit comments

Comments
 (0)