Skip to content

Commit e89592e

Browse files
committed
fix: proper syntax
1 parent 4117e24 commit e89592e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sign.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,17 +168,17 @@ def security_remove_keychain(keychain: str):
168168
def security_import(cert: Path, cert_pass: str, keychain: str) -> List[str]:
169169
password = "1234"
170170
keychains = [*security_get_keychain_list(), keychain]
171-
run_process("security", "create-keychain", "-p", password, keychain),
172-
run_process("security", "unlock-keychain", "-p", password, keychain),
173-
run_process("security", "set-keychain-settings", keychain),
174-
run_process("security", "list-keychains", "-d", "user", "-s", *keychains),
175-
run_process("security", "import", str(cert), "-P", cert_pass, "-A", "-k", keychain),
171+
run_process("security", "create-keychain", "-p", password, keychain)
172+
run_process("security", "unlock-keychain", "-p", password, keychain)
173+
run_process("security", "set-keychain-settings", keychain)
174+
run_process("security", "list-keychains", "-d", "user", "-s", *keychains)
175+
run_process("security", "import", str(cert), "-P", cert_pass, "-A", "-k", keychain)
176176
run_process(
177177
"security",
178178
*["set-key-partition-list", "-S", "apple-tool:,apple:,codesign:", "-s", "-k"],
179179
password,
180180
keychain,
181-
),
181+
)
182182
identity: str = decode_clean(run_process("security", "find-identity", "-p", "appleID", "-v", keychain).stdout)
183183
return [line.strip('"') for line in re.findall('".*"', identity)]
184184

0 commit comments

Comments
 (0)