Revision: 27216
          http://sourceforge.net/p/bibdesk/svn/27216
Author:   hofman
Date:     2022-01-05 20:34:59 +0000 (Wed, 05 Jan 2022)
Log Message:
-----------
Save info.plist in source path

Modified Paths:
--------------
    trunk/bibdesk/build_release.py

Modified: trunk/bibdesk/build_release.py
===================================================================
--- trunk/bibdesk/build_release.py      2022-01-05 17:23:39 UTC (rev 27215)
+++ trunk/bibdesk/build_release.py      2022-01-05 20:34:59 UTC (rev 27216)
@@ -115,8 +115,10 @@
         oldVersion = infoPlist["CFBundleShortVersionString"].split(".")
         if len(oldVersion) > 2:
             oldVersion[-1] = str(int(oldVersion[-1]) + 1)
+        else if len(oldVersion) == 2:
+            oldVersion.append("1")
         else:
-            oldVersion.append("1")
+            oldVersion = oldVersion + ["0", "1"]
         newVersion = ".".join(oldVersion)
     else if newVersion == "++":
         oldVersion = infoPlist["CFBundleShortVersionString"].split(".")
@@ -132,7 +134,7 @@
         oldVersion = [str(int(oldVersion[0]) + 1), '0']
         newVersion = ".".join(oldVersion)
     infoPlist["CFBundleShortVersionString"] = newVersion
-    plistlib.writePlist(infoPlist, PLIST_PATH)
+    plistlib.writePlist(infoPlist, SOURCE_PLIST_PATH)
 
 def read_versions():
     

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

Reply via email to