Skip to content

Commit

Permalink
fix: mas target — Identity name is specified, but no valid identity w…
Browse files Browse the repository at this point in the history
…ith this name in the keychain

Closes #479
  • Loading branch information
develar committed Jun 9, 2016
1 parent 7f9e6e3 commit b091a13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/codeSign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ export let findIdentityRawResult: Promise<string> | null = null

export async function findIdentity(namePrefix: CertType, qualifier?: string): Promise<string | null> {
if (findIdentityRawResult == null) {
findIdentityRawResult = exec("security", ["find-identity", "-v", "-p", "codesigning"])
// -p codesigning must be not specified - installer identities is not listed if specified
findIdentityRawResult = exec("security", ["find-identity", "-v"])
}

const lines = (await findIdentityRawResult).trim().split("\n")
Expand Down

0 comments on commit b091a13

Please sign in to comment.