Skip to content

Commit

Permalink
Merge pull request #8160 from kidroca/kidroca/feat/desktop-one-arch-p…
Browse files Browse the repository at this point in the history
…er-build
  • Loading branch information
roryabraham authored Mar 22, 2022
2 parents 36ae0cf + f69b1b7 commit 6f6eaaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 1 addition & 5 deletions config/electronBuilder.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ module.exports = {
},
mac: {
category: 'public.app-category.finance',
target: [
{target: 'dmg', arch: ['x64', 'arm64', 'universal']},
{target: 'zip', arch: ['x64', 'arm64', 'universal']},
],
icon: isStaging ? './desktop/icon-stg.png' : './desktop/icon.png',
hardenedRuntime: true,
entitlements: 'desktop/entitlements.mac.plist',
Expand All @@ -27,7 +23,7 @@ module.exports = {
},
dmg: {
title: 'New Expensify',
artifactName: 'NewExpensify.dmg',
artifactName: `NewExpensify${process.env.ARTIFACT_SUFFIX || ''}.dmg`,
internetEnabled: true,
},
publish: [{
Expand Down
4 changes: 3 additions & 1 deletion scripts/build-desktop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ info ""
title "Building Desktop App Archive Using Electron"
info ""
shift 1
"$LOCAL_PACKAGES/electron-builder" --config config/electronBuilder.config.js "$@"
"$LOCAL_PACKAGES/electron-builder" --config config/electronBuilder.config.js --x64 "$@"
export ARTIFACT_SUFFIX="-arm64"
"$LOCAL_PACKAGES/electron-builder" --config config/electronBuilder.config.js --arm64 "$@"

0 comments on commit 6f6eaaa

Please sign in to comment.