macos travis fix

This commit is contained in:
pokamest 2021-01-28 12:54:09 +03:00
parent ba3f69d206
commit 1e54379cc0

View file

@ -12,6 +12,14 @@ jobs:
os: osx
osx_image: xcode12.2
before_install:
- export CERTIFICATE_P12=deploy/PrivacyTechAppleCert.p12
- export KEYCHAIN=build.keychain
- security create-keychain -p $MAC_CERT_PW $KEYCHAIN
- security default-keychain -s $KEYCHAIN
- security unlock-keychain -p $MAC_CERT_PW $KEYCHAIN
- security import $CERTIFICATE_P12 -k $KEYCHAIN -P $MAC_CERT_PW -T /usr/bin/codesign
script:
- |
if [ ! -f $HOME/Qt/5.14.2/clang_64/bin/qmake ]; then \
@ -22,6 +30,16 @@ jobs:
fi
- bash deploy/build_macos.sh
deploy:
provider: releases
token: $GH_TOKEN
file:
- "AmneziaVPN.dmg"
on:
tags: true
branch: master
- name: Windows
os: windows
@ -49,16 +67,11 @@ jobs:
- echo -e "call deploy\\\build_windows.bat" >> winbuild.bat
- cmd //c winbuild.bat
deploy:
deploy:
provider: releases
api_key: $GH_TOKEN
token: $GH_TOKEN
file:
- "AmneziaVPN.exe"
- "AmneziaVPN.dmg"
skip_cleanup: true
on:
tags: true
branch: master