Revision: 16815
http://sourceforge.net/p/skim-app/code/16815
Author: hofman
Date: 2026-11-26 16:38:27 +0000 (Thu, 26 Nov 2026)
Log Message:
-----------
separate function for staple
Modified Paths:
--------------
trunk/build_skim.py
Modified: trunk/build_skim.py
===================================================================
--- trunk/build_skim.py 2026-11-26 15:38:51 UTC (rev 16814)
+++ trunk/build_skim.py 2026-11-26 16:38:27 UTC (rev 16815)
@@ -198,6 +198,14 @@
print(f"notarytool exited with status {rc}")
assert rc == 0, "notarization failed"
+def staple(archive_path):
+
+ staple_cmd = ["xcrun", "stapler", "staple", archive_path]
+ print(" ".join(staple_cmd))
+ x = Popen(staple_cmd)
+ rc = x.wait()
+ assert rc == 0, "stapler failed"
+
def create_dmg_of_application(new_version_number, create_new):
# Create a name for the dmg based on version number, instead
@@ -576,25 +584,16 @@
notarize_archive(archive_path, notarize_password)
if archive_path.endswith("dmg"):
- # xcrun stapler staple Skim-1.4.dmg
- staple_cmd = ["xcrun", "stapler", "staple", archive_path]
- print(" ".join(staple_cmd))
- x = Popen(staple_cmd)
- rc = x.wait()
- assert rc == 0, "stapler failed"
+ staple(archive_path)
else:
# staple the application, then delete the zip we notarized
# and make a new zip of the stapled application, because stapler
# won't staple a damn zip file
https://developer.apple.com/forums/thread/115670
- staple_cmd = ["xcrun", "stapler", "staple", BUILT_APP]
- print(" ".join(staple_cmd))
- x = Popen(staple_cmd)
- rc = x.wait()
- assert rc == 0, "stapler failed"
+ staple(BUILT_APP)
os.unlink(archive_path)
archive_path = create_zip_of_application(new_version_string)
else:
- sys.stderr.write("\nWARNING: built product will not be
notarized\n\n")
+ sys.stderr.write("\nWARNING: built product will not be notarized\n\n")
out = out.replace("<v>", new_version_string)
out = out.replace("<version>", new_version_string)
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