From b4ce74b00218c826c0cb13fcfd04d3188ba020eb Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Mon, 13 Jul 2020 13:14:15 -0700 Subject: [PATCH] ZIP mas-dev --- .circleci/config.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 70a073d..4bf38c3 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -96,6 +96,17 @@ jobs: condition: *should_sign 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: name: Move PKG to artifacts directory command: |