build 'dist' for signed, 'distDev' for unsigned

This commit is contained in:
Christopher Willis-Ford 2020-06-25 16:13:39 -07:00
parent ed23e98d24
commit 104317bff8
2 changed files with 15 additions and 6 deletions

View file

@ -75,9 +75,7 @@ jobs:
- ~/Library/Caches/Homebrew
- /usr/local/Homebrew
key: homebrew-cache-v1
- run:
name: Build
command: npm run dist
- build
- run:
name: Move macOS build products to artifacts directory
command: |
@ -123,9 +121,7 @@ jobs:
finally {
Remove-Item -Force $tempPfx
}
- run:
name: Build
command: npm run dist
- build
- run:
name: Move Windows build products to artifacts directory
command: |
@ -153,3 +149,15 @@ commands:
paths:
- << parameters.npmCacheDir >>
key: npm-cache-{{ arch }}-{{ checksum "package-lock.json" }}
build:
steps:
- when:
condition:
*should_sign
steps:
- run: npm run dist
- unless:
condition:
*should_sign
steps:
- run: npm run distDev

View file

@ -16,6 +16,7 @@
"build:dist": "npm run compile && npm run doBuild -- --mode=dist",
"doBuild": "node ./scripts/electron-builder-wrapper.js",
"dist": "npm run clean && npm run compile && npm run fetch && npm run doBuild -- --mode=dist",
"distDev": "npm run clean && npm run compile && npm run fetch && npm run doBuild -- --mode=dev",
"test": "npm run test:lint",
"test:lint": "eslint --cache --color --ext .jsx,.js .",
"postinstall": "node ./scripts/npm-in-gui.js install",