File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,7 +17,11 @@ s3host=${S3HOST:-}
1717istest=${TEST:- }
1818skip_notarize=${SKIP_NOTARIZE:- }
1919arch=${ARCH:- " amd64" }
20+ electron_arch=" x64"
2021platform=${PLATFORM:- " darwin" }
22+ if [ " $arch " = " arm64" ]; then
23+ electron_arch = " arm64"
24+ fi
2125
2226if [ ! " $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"
Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments