Skip to content

Commit

Permalink
chore: streamline release process
Browse files Browse the repository at this point in the history
  • Loading branch information
will-stone committed Nov 20, 2022
1 parent 31568ef commit b21adb7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions forge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ const config: ForgeConfig = {
asar: false,
extendInfo: 'plist/Info.plist',
icon: 'src/shared/static/icon/icon.icns',
osxNotarize: {
keychain: '~/Library/Keychains/login.keychain-db',
keychainProfile: 'AC_PASSWORD',
tool: 'notarytool',
},
osxSign: {
optionsForFile: () => ({
'entitlements': 'plist/entitlements.mac.plist',
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,15 @@
"icns": "cd ./src/shared/static/icon && ../../../../scripts/png2icns.sh icon.png",
"lint": "eslint . --ignore-path .gitignore --ext .js,.jsx,.cjs,.mjs,.ts,.tsx",
"list-apps": "ts-node ./scripts/listInstalledApps",
"make": "electron-forge make --skip-package --arch=x64,arm64",
"make:arm": "electron-forge make --skip-package --arch=arm64",
"make:intel": "electron-forge make --skip-package --arch=x64",
"notarize": "node ./scripts/notarize.js",
"make": "electron-forge make --arch=x64,arm64",
"make:arm": "electron-forge make --arch=arm64",
"make:intel": "electron-forge make --arch=x64",
"prepackage": "rimraf out",
"package": "NODE_ENV=production electron-forge package --platform=darwin --arch=x64,arm64",
"package:arm": "NODE_ENV=production electron-forge package --platform=darwin --arch=arm64",
"package:intel": "NODE_ENV=production electron-forge package --platform=darwin --arch=x64",
"prepare": "husky install",
"release": "bump --commit \"chore: release v\" && npm run doctor && npm run package && npm run notarize && npm run make",
"release": "npm run doctor && bump --commit \"chore: release v\" && npm run make",
"start": "ELECTRON_DISABLE_SECURITY_WARNINGS=true electron-forge start",
"test": "jest",
"typecheck": "tsc --noEmit --skipLibCheck",
Expand Down

0 comments on commit b21adb7

Please sign in to comment.