mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-06 19:26:55 +08:00
[client-app] fix keychain issue on OSX build
This commit is contained in:
parent
8d057ca256
commit
42a0fa033e
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ module.exports = (grunt) => {
|
||||||
return cleanupKeychain()
|
return cleanupKeychain()
|
||||||
.then(() => spawnP({cmd: "security", args: ["create-keychain", '-p', tmpPass, tmpKeychain]}))
|
.then(() => spawnP({cmd: "security", args: ["create-keychain", '-p', tmpPass, tmpKeychain]}))
|
||||||
|
|
||||||
|
// Due to a bug in OSX, you must list-keychain with -s in order for it
|
||||||
|
// to actually add it to the list of keychains. See http://stackoverflow.com/questions/20391911/os-x-keychain-not-visible-to-keychain-access-app-in-mavericks
|
||||||
|
.then(() => spawnP({cmd: "security", args: ["list-keychains", "-s", tmpKeychain]}))
|
||||||
|
|
||||||
// Make the custom keychain default, so xcodebuild will use it for signing
|
// Make the custom keychain default, so xcodebuild will use it for signing
|
||||||
.then(() => spawnP({cmd: "security", args: ["default-keychain", "-s", tmpKeychain]}))
|
.then(() => spawnP({cmd: "security", args: ["default-keychain", "-s", tmpKeychain]}))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue