wxPython Workflow: Add legacy binary

This commit is contained in:
Mykola Grymalyuk
2021-12-24 12:38:51 -07:00
parent 5b97685274
commit 86af9e96f4
2 changed files with 32 additions and 1 deletions

10
merge_gui_legacy.py Normal file
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-Legacy.app/Contents/Info.plist")
info = plistlib.load(Path(app_path).open("rb"))
info["CFBundleExecutable"] = "Launcher"
plistlib.dump(info, Path(app_path).open("wb"), sort_keys=True)