Skip to content

Commit

Permalink
Fix builds and snap upload
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasnordquist committed Apr 25, 2020
1 parent ad888f6 commit dbb6ead
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ script:
- export TRAVIS_BUILD_NUMBER="" # Override travis build number since it is uses for tagging the binary version https://github.com/electron-userland/electron-builder/issues/3730
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run -e GH_TOKEN=$GH_TOKEN -e GIT_TAG=$TRAVIS_TAG --rm -v `pwd`:/app thomasnordquist/ui-test-recording-env sh -c "cd app && docker/testMounted.sh"; fi
- if [[ "$TRAVIS_TAG" != "" ]]; then yarn run prepare-release; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_TAG" != "" ]]; then yarn run package linux; fi
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_TAG" != "" ]]; then
openssl aes-256-cbc -d -in res/snapstore-credentials.enc -out credentials -k $SNAPSTORE_CREDENTIALS_DECRYPTION_KEY;
snapcraft login --with credentials;
rm credentials;
yarn run package linux;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$TRAVIS_TAG" != "" ]]; then yarn run package -- mac; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$TRAVIS_TAG" != "" ]]; then unset CSC_LINK; yarn run package -- win; fi
Binary file added res/snapstore-credentials.enc
Binary file not shown.
2 changes: 1 addition & 1 deletion scripts/prepare-release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function prepareRelease() {

// Clean up
await fs.remove('node_modules')
// await exec('yarn', ['install', '--production']) // Do not clean up, electron version detection will fail otherwise
await exec('yarn', ['install', '--production']) // Do not clean up, electron version detection will fail otherwise
await fs.remove(path.join('app', 'node_modules'))

chdir(originalDir)
Expand Down

0 comments on commit dbb6ead

Please sign in to comment.