Revision: 12239
          http://sourceforge.net/p/skim-app/code/12239
Author:   hofman
Date:     2021-04-03 21:51:08 +0000 (Sat, 03 Apr 2021)
Log Message:
-----------
return path from dmg creation function

Modified Paths:
--------------
    trunk/build_skim.py

Modified: trunk/build_skim.py
===================================================================
--- trunk/build_skim.py 2021-04-03 21:30:42 UTC (rev 12238)
+++ trunk/build_skim.py 2021-04-03 21:51:08 UTC (rev 12239)
@@ -130,11 +130,10 @@
     print("codesign_skim.sh exited with status %s" % (rc))
     assert rc == 0, "code signing failed"
     
-def notarize_dmg_or_zip(dmg_path, username, password):
-    """dmg_path: zip file or dmg file"""
+def notarize_dmg_or_zip(dmg_or_zip_path, username, password):
     
-    identifier = "net.sourceforce.skim-app.skim" + 
os.path.splitext(dmg_path)[1]
-    notarize_cmd = ["xcrun", "altool", "--notarize-app", 
"--primary-bundle-id", identifier, "--username", username, "--password",  
password, "--output-format", "xml", "--file", dmg_path]
+    identifier = "net.sourceforce.skim-app.skim" + 
os.path.splitext(dmg_or_zip_path)[1]
+    notarize_cmd = ["xcrun", "altool", "--notarize-app", 
"--primary-bundle-id", identifier, "--username", username, "--password",  
password, "--output-format", "xml", "--file", dmg_or_zip_path]
     notarize_task = Popen(notarize_cmd, cwd=SOURCE_DIR, stdout=PIPE, 
stderr=PIPE)
     [output, error] = notarize_task.communicate()
     rc = notarize_task.returncode
@@ -292,6 +291,8 @@
     # remove temp image
     nullDevice.close()
     os.unlink(temp_dmg_path)
+    
+    return final_dmg_name
 
 def create_zip_of_application(new_version_number):
     

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

Reply via email to