Revision: 27214
http://sourceforge.net/p/bibdesk/svn/27214
Author: hofman
Date: 2022-01-05 17:07:46 +0000 (Wed, 05 Jan 2022)
Log Message:
-----------
Bump short version string when passing + as version
Modified Paths:
--------------
trunk/bibdesk/build_release.py
Modified: trunk/bibdesk/build_release.py
===================================================================
--- trunk/bibdesk/build_release.py 2022-01-05 16:41:46 UTC (rev 27213)
+++ trunk/bibdesk/build_release.py 2022-01-05 17:07:46 UTC (rev 27214)
@@ -111,8 +111,11 @@
# change CFBundleVersion and rewrite the Info.plist
infoPlist = plistlib.readPlist(SOURCE_PLIST_PATH)
assert infoPlist is not None, "unable to read Info.plist"
+ if newVersion == "+":
+ oldVersion = infoPlist["CFBundleShortVersionString"].split(".")
+ oldVersion[-1] = str(int(oldVersion[-1]) + 1)
+ newVersion = ".".join(oldVersion)
infoPlist["CFBundleShortVersionString"] = newVersion
- minimumSystemVersion = infoPlist["LSMinimumSystemVersion"]
plistlib.writePlist(infoPlist, 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