chore: add travis config for mac build

This commit is contained in:
Johannes Millan 2019-10-07 14:32:31 +02:00
parent 01cb4fa91e
commit 990a1bd51c
6 changed files with 335 additions and 304 deletions

2
.gitignore vendored
View file

@ -50,3 +50,5 @@ electron/**/*.js.map
# mac os deployment
*.provisionprofile
*.Xprovisionprofile
all-certs.p12
mac-cert.tar

View file

@ -9,6 +9,9 @@ matrix:
env:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
before_install:
- openssl aes-256-cbc -K $encrypted_527645209bb0_key -iv $encrypted_527645209bb0_iv -in build/mac-cert.tar.enc -out mac-cert.tar -d
- tar xvf mac-cert.tar
install:
- brew update
- brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb
@ -63,7 +66,9 @@ script:
/bin/bash -c "echo '____DOCKER_INNER_START____' && ls -l && yarn --link-duplicates --pure-lockfile && yarn run distLinuxAndWin -p ${PUB} && ls -l ./dist"
else
yarn install && yarn add 7zip-bin-mac
yarn run dist -p $PUB
yarn run buildAllElectron
yarn dist:mac:dl -p $PUB
yarn dist:mac:mas
fi
deploy:

BIN
build/mac-cert.tar.enc Normal file

Binary file not shown.

View file

@ -46,10 +46,10 @@ mac:
provisioningProfile: embedded.provisionprofile
# darkModeSupport: true
target:
# - dmg
- mas
- dmg
- zip
# - mas
# - pkg
# - zip
mas:
type: distribution

View file

@ -43,8 +43,8 @@
"dist:linuxAndWin": "yarn buildAllElectron && electron-builder --linux --win",
"dist:win": "yarn buildAllElectron && electron-builder --win",
"dist:win:only": "electron-builder --win",
"dist:mac:local": "cp dev.provisionprofile embedded.provisionprofile && electron-builder --mac",
"dist:mac:store": "cp prod.provisionprofile embedded.provisionprofile; electron-builder --mac --config=build/electron-builder.mas.yaml",
"dist:mac:dl": "cp dl.provisionprofile embedded.provisionprofile && electron-builder --mac",
"dist:mac:mas": "cp mas.provisionprofile embedded.provisionprofile; electron-builder --mac --config=build/electron-builder.mas.yaml",
"release": "yarn release.changelog && yarn dist",
"release.changelog": "conventional-changelog -i CHANGELOG.md -s -p angular",
"version": "yarn release.changelog && git add -A",

620
yarn.lock

File diff suppressed because it is too large Load diff