add settings for mas-dev build

This commit is contained in:
Christopher Willis-Ford 2020-05-22 15:19:28 -07:00
parent 229c42469d
commit 3cdcb199bd
3 changed files with 5 additions and 1 deletions

2
.gitignore vendored
View file

@ -17,7 +17,7 @@ npm-*
/build
/dist
/.opt-in
/embedded.provisionprofile
/*.provisionprofile
# don't store the assets downloaded with the `fetch` script
/static/assets/

View file

@ -25,6 +25,9 @@ mas:
entitlements: buildResources/entitlements.mas.plist
entitlementsInherit: buildResources/entitlements.mas.inherit.plist
icon: buildResources/ScratchDesktop.icns
masDev:
type: development
provisioningProfile: macDeveloperThisDevice.provisionprofile
win:
icon: buildResources/ScratchDesktop.ico
target:

View file

@ -83,6 +83,7 @@ const calculateTargets = function () {
// Running them as separate passes means they both get signed.
// Seems like a bug in electron-builder...
// Running the 'mas' build first means that its output is available while we wait for 'dmg' notarization.
// Add 'mas-dev' here to test a 'mas'-like build locally. You'll need a Mac Developer provisioning profile.
return ['mas', 'dmg'];
}
throw new Error(`Could not determine targets for platform: ${process.platform}`);