Revision: 12689 http://sourceforge.net/p/skim-app/code/12689 Author: hofman Date: 2022-01-05 17:07:35 +0000 (Wed, 05 Jan 2022) Log Message: ----------- Bump short version string when passing + as version
Modified Paths: -------------- trunk/build_skim.py Modified: trunk/build_skim.py =================================================================== --- trunk/build_skim.py 2022-01-05 16:41:38 UTC (rev 12688) +++ trunk/build_skim.py 2022-01-05 17:07:35 UTC (rev 12689) @@ -110,8 +110,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. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit