Update CI

This commit is contained in:
Mykola Grymalyuk
2021-06-23 12:34:05 -06:00
parent 1064be45df
commit 8cfa90f352
2 changed files with 12 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
# 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)