Merge pull request #1391 from michelf/hardened

Updated XPC codesigning to enable hardened runtime.
This commit is contained in:
Kornel authored and GitHub committed 2019-04-16 19:34:46 +01:00
commit 36f4955740
1 file changed
+1 -1
+1 -1
View File
@@ -10,7 +10,7 @@ def sanitize(argument):
return ('"' + argument + '"' if ' ' in argument else argument)
def _codesign_service(identity, path, entitlements_path=None):
command = ["codesign", "-fs", identity, path] + ([] if entitlements_path is None else ["--entitlements", entitlements_path])
command = ["codesign", "-o", "runtime", "-fs", identity, path] + ([] if entitlements_path is None else ["--entitlements", entitlements_path])
log_message(" ".join(map(sanitize, command)))
process = subprocess.Popen(command, stdout=subprocess.PIPE)