mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-12-26 10:00:50 +08:00
Travis: Setup mac keychain before building C++
This commit is contained in:
parent
2e1b33c5f6
commit
c4488cbc7b
4 changed files with 6 additions and 5 deletions
|
@ -77,6 +77,7 @@ before_install:
|
|||
git submodule update --init mailsync
|
||||
|
||||
script:
|
||||
- npm run ci-setup-mac-keychain
|
||||
- mailsync/build.sh
|
||||
- mv ./mailsync ./mailsync-src
|
||||
- DEBUG=electron-packager,electron-osx-sign npm run build
|
||||
|
|
|
@ -78,12 +78,11 @@ module.exports = (grunt) => {
|
|||
// The Windows electron-winstaller task must be run outside of grunt
|
||||
]);
|
||||
} else if (grunt.option('platform') === 'darwin') {
|
||||
const subTasks = process.env.SIGN_BUILD ? ["setup-mac-keychain"] : []
|
||||
grunt.registerTask("build-client", subTasks.concat([
|
||||
grunt.registerTask("build-client", [
|
||||
"package",
|
||||
"create-mac-zip",
|
||||
"create-mac-dmg",
|
||||
]));
|
||||
]);
|
||||
} else if (grunt.option('platform') === 'linux') {
|
||||
grunt.registerTask("build-client", [
|
||||
"package",
|
||||
|
|
2
mailsync
2
mailsync
|
@ -1 +1 @@
|
|||
Subproject commit ca93826adb2fdacc43e0626a2a69cb772aef054c
|
||||
Subproject commit dda1be26cb78aa47362c80689e0017e7dc2c5df9
|
|
@ -68,6 +68,7 @@
|
|||
"test": "app/node_modules/.bin/electron ./app --enable-logging --test",
|
||||
"test-window": "app/node_modules/.bin/electron ./app --enable-logging --test=window",
|
||||
"build": "grunt build-client --gruntfile=app/build/Gruntfile.js --base=./",
|
||||
"build-docs": "grunt docs --gruntfile=app/build/Gruntfile.js --base=./ && mkdir -p app/dist-docs && cp README.md ./app/build/docs_src/README.md && gitbook --gitbook=latest build . ./app/dist-docs --log=debug --debug && rm ./app/build/docs_src/README.md && rm -rf ./app/build/docs_src/classes"
|
||||
"build-docs": "grunt docs --gruntfile=app/build/Gruntfile.js --base=./ && mkdir -p app/dist-docs && cp README.md ./app/build/docs_src/README.md && gitbook --gitbook=latest build . ./app/dist-docs --log=debug --debug && rm ./app/build/docs_src/README.md && rm -rf ./app/build/docs_src/classes",
|
||||
"ci-setup-mac-keychain": "grunt setup-mac-keychain --gruntfile=app/build/Gruntfile.js --base=./"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue