mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2025-03-13 22:29:59 -04:00
build 'dist' for signed, 'distDev' for unsigned
This commit is contained in:
parent
ed23e98d24
commit
104317bff8
2 changed files with 15 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue