Revision: 28925
http://sourceforge.net/p/bibdesk/svn/28925
Author: hofman
Date: 2024-05-23 16:44:50 +0000 (Thu, 23 May 2024)
Log Message:
-----------
code sign dmg in build script
Modified Paths:
--------------
trunk/bibdesk/build_release.py
Modified: trunk/bibdesk/build_release.py
===================================================================
--- trunk/bibdesk/build_release.py 2024-05-23 14:43:56 UTC (rev 28924)
+++ trunk/bibdesk/build_release.py 2024-05-23 16:44:50 UTC (rev 28925)
@@ -181,6 +181,17 @@
print(f"codesign_bibdesk.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",
"edu.ucsd.cs.mmccrack.bibdesk.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]
@@ -560,6 +571,8 @@
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
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit