Files
OpenCore-Legacy-Patcher/merge_gui.py
2022-01-01 17:00:43 -07:00

10 lines
429 B
Python

# Updates build version in OCLP-GUI during CI builds
# Copyright (C) 2021-2022 Mykola Grymalyuk
import plistlib
from pathlib import Path
from resources import constants
app_path = Path.cwd() / Path ("OpenCore Patcher.app/Contents/Info.plist")
info = plistlib.load(Path(app_path).open("rb"))
info["CFBundleShortVersionString"] = constants.Constants().patcher_version
plistlib.dump(info, Path(app_path).open("wb"), sort_keys=True)