Revision: 14248
http://sourceforge.net/p/skim-app/code/14248
Author: hofman
Date: 2024-05-23 16:45:03 +0000 (Thu, 23 May 2024)
Log Message:
-----------
code sign dmg in build script
Modified Paths:
--------------
trunk/build_skim.py
Modified: trunk/build_skim.py
===================================================================
--- trunk/build_skim.py 2024-05-23 14:44:29 UTC (rev 14247)
+++ trunk/build_skim.py 2024-05-23 16:45:03 UTC (rev 14248)
@@ -175,6 +175,17 @@
print(f"codesign_skim.sh exited with status {rc}")
assert rc == 0, "code signing failed"
+def codesign_dmg(archive_path, identity):
+
+ print("codesign %s" % (archive_path))
+
+ sign_cmd = ["codesign", "-s", identity, "--timestamp", "-i",
"net.sourceforge.skim-app.skim.dmg", archive_path]
+ print(" ".join(sign_cmd))
+ x = Popen(sign_cmd, cwd=SOURCE_DIR)
+ rc = x.wait()
+ print(f"codesign dmg exited with status {rc}")
+ assert rc == 0, "code signing dmg failed"
+
def notarize_archive(archive_path, password):
notarize_cmd = ["xcrun", "notarytool", "submit", "--keychain-profile",
password, "--wait", archive_path]
@@ -554,7 +565,9 @@
archive_path = create_zip_of_application(new_version_string)
else:
archive_path = create_dmg_of_application(new_version_string, archive
== "dmg")
-
+ if sign_id != "":
+ codesign_dmg(archive_path, sign_id)
+
if notarize_password != "":
# will bail if any part fails
notarize_archive(archive_path, notarize_password)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit