ZIP mas-dev

This commit is contained in:
Christopher Willis-Ford 2020-07-13 13:14:15 -07:00
parent 7c7ddd1e6c
commit b4ce74b002

View file

@ -96,6 +96,17 @@ jobs:
condition: condition:
*should_sign *should_sign
steps: steps:
- run:
name: Zip MAS-Dev to artifacts directory
# If you use `zip` for this it will throw away some metadata (resource forks?) and
# the app will crash on startup with "EXC_CRASH (Code Signature Invalid)".
# To preserve that metadata, use `ditto` instead.
# See also: https://stackoverflow.com/a/22370486
command: |
NPM_APP_VERSION="`node -pe "require('./package.json').version"`"
cd dist/mas-dev
ditto -v -c -k --sequesterRsrc --keepParent --zlibCompressionLevel 9 \
"Scratch Desktop.app" ../../Artifacts/mas-dev-${NPM_APP_VERSION}.zip
- run: - run:
name: Move PKG to artifacts directory name: Move PKG to artifacts directory
command: | command: |