mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-11 16:27:19 +10:00
10 lines
424 B
Python
10 lines
424 B
Python
# Updates build version in OCLP-GUI during CI builds
|
|
# Copyright (C) 2021 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) |