Skip to content

Commit dbb6ead

Browse files
Fix builds and snap upload
1 parent ad888f6 commit dbb6ead

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ script:
3535
- 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
3636
- 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
3737
- if [[ "$TRAVIS_TAG" != "" ]]; then yarn run prepare-release; fi
38-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_TAG" != "" ]]; then yarn run package linux; fi
38+
- |
39+
if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_TAG" != "" ]]; then
40+
openssl aes-256-cbc -d -in res/snapstore-credentials.enc -out credentials -k $SNAPSTORE_CREDENTIALS_DECRYPTION_KEY;
41+
snapcraft login --with credentials;
42+
rm credentials;
43+
yarn run package linux;
44+
fi
3945
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$TRAVIS_TAG" != "" ]]; then yarn run package -- mac; fi
4046
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$TRAVIS_TAG" != "" ]]; then unset CSC_LINK; yarn run package -- win; fi

res/snapstore-credentials.enc

2.31 KB
Binary file not shown.

scripts/prepare-release.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function prepareRelease() {
2828

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

3434
chdir(originalDir)

0 commit comments

Comments
 (0)