mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-10-06 03:14:39 +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()
|
||||
.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
|
||||
.then(() => spawnP({cmd: "security", args: ["default-keychain", "-s", tmpKeychain]}))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue