Publish CFBundleVersion

This commit is contained in:
Mykola Grymalyuk
2024-05-27 10:54:54 -06:00
parent fdddb8378c
commit c5dae2c61f
2 changed files with 2 additions and 0 deletions

View File

@@ -152,6 +152,7 @@ def main() -> None:
# Update app version in Info.plist
plist_path = Path("dist/OpenCore-Patcher.app/Contents/Info.plist")
contents = plistlib.load(plist_path.open("rb"))
contents["CFBundleVersion"] = constants.Constants().patcher_version
contents["CFBundleShortVersionString"] = constants.Constants().patcher_version
plistlib.dump(contents, plist_path.open("wb"))

View File

@@ -74,6 +74,7 @@ app = BUNDLE(coll,
bundle_identifier="com.dortania.opencore-legacy-patcher",
info_plist={
"CFBundleName": "OpenCore Legacy Patcher",
"CFBundleVersion": constants.Constants().patcher_version,
"CFBundleShortVersionString": constants.Constants().patcher_version,
"NSHumanReadableCopyright": constants.Constants().copyright_date,
"LSMinimumSystemVersion": "10.10.0",