2021-02-05 11:56:41 +00:00
|
|
|
if: commit_message =~ ^Release
|
2021-02-05 11:51:17 +00:00
|
|
|
|
2021-02-05 10:58:43 +00:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: osx
|
|
|
|
osx_image: xcode12.2
|
|
|
|
language: node_js
|
|
|
|
node_js: "14"
|
|
|
|
env:
|
|
|
|
- ELECTRON_CACHE=$HOME/.cache/electron
|
|
|
|
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
|
|
|
|
|
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- node_modules
|
|
|
|
- $HOME/.cache/electron
|
|
|
|
- $HOME/.cache/electron-builder
|
|
|
|
|
|
|
|
script:
|
|
|
|
- |
|
2021-02-05 11:25:15 +00:00
|
|
|
export CERTIFICATE_P12=cert.p12;
|
|
|
|
echo $MACOS_CERT_P12 | base64 --decode > $CERTIFICATE_P12;
|
|
|
|
export KEYCHAIN=build.keychain;
|
|
|
|
security create-keychain -p travis $KEYCHAIN;
|
|
|
|
security default-keychain -s $KEYCHAIN;
|
|
|
|
security unlock-keychain -p travis $KEYCHAIN;
|
|
|
|
security import $CERTIFICATE_P12 -k $KEYCHAIN -P $MACOS_CERT_PASSWORD -T /usr/bin/codesign 2>&1 >/dev/null;
|
|
|
|
rm $CERTIFICATE_P12;
|
2021-02-05 13:01:46 +00:00
|
|
|
security set-key-partition-list -S apple-tool:,apple: -s -k travis $KEYCHAIN 2>&1 >/dev/null;
|
2021-02-05 13:09:17 +00:00
|
|
|
yarn run generate-icons;
|
|
|
|
yarn run publish;
|
2021-02-05 10:58:43 +00:00
|
|
|
before_cache:
|
2021-02-05 11:53:34 +00:00
|
|
|
- rm -rf $HOME/.cache/electron-builder/wine
|
2021-02-05 12:54:30 +00:00
|
|
|
|
|
|
|
branches:
|
|
|
|
except:
|
2021-02-05 12:55:40 +00:00
|
|
|
- "/^v\\d+\\.\\d+\\.\\d+$/"
|