mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
Build: Set versioning in update shim
This commit is contained in:
@@ -7,6 +7,7 @@ import os
|
|||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import argparse
|
import argparse
|
||||||
|
import plistlib
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
@@ -19,6 +20,8 @@ from ci_tooling.build_module import (
|
|||||||
autopkg
|
autopkg
|
||||||
)
|
)
|
||||||
|
|
||||||
|
from opencore_legacy_patcher import constants
|
||||||
|
|
||||||
|
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
"""
|
"""
|
||||||
@@ -137,6 +140,12 @@ def main() -> None:
|
|||||||
Path("dist/OpenCore-Patcher.app").rename("dist/OpenCore-Patcher-Core.app")
|
Path("dist/OpenCore-Patcher.app").rename("dist/OpenCore-Patcher-Core.app")
|
||||||
Path("dist/OpenCore-Patcher (Shim).app").rename("dist/OpenCore-Patcher.app")
|
Path("dist/OpenCore-Patcher (Shim).app").rename("dist/OpenCore-Patcher.app")
|
||||||
|
|
||||||
|
# Update app version in Info.plist
|
||||||
|
plist_path = Path("dist/OpenCore-Patcher.app/Contents/Info.plist")
|
||||||
|
contents = plistlib.load(plist_path.open("rb"))
|
||||||
|
contents["CFBundleShortVersionString"] = constants.Constants().patcher_version
|
||||||
|
plistlib.dump(contents, plist_path.open("wb"))
|
||||||
|
|
||||||
sign_notarize.SignAndNotarize(
|
sign_notarize.SignAndNotarize(
|
||||||
path=Path("dist/OpenCore-Patcher.app"),
|
path=Path("dist/OpenCore-Patcher.app"),
|
||||||
signing_identity=args.application_signing_identity,
|
signing_identity=args.application_signing_identity,
|
||||||
|
|||||||
@@ -9,11 +9,11 @@
|
|||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>AppIcon.icns</string>
|
<string>AppIcon.icns</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>com.dortania.opencore-legacy-patcher-helper</string>
|
<string>com.dortania.opencore-legacy-patcher</string>
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
<key>CFBundleInfoDictionaryVersion</key>
|
||||||
<string>6.0</string>
|
<string>6.0</string>
|
||||||
<key>CFBundleName</key>
|
<key>CFBundleName</key>
|
||||||
<string>OpenCore-Patcher</string>
|
<string>OpenCore Legacy Patcher</string>
|
||||||
<key>CFBundlePackageType</key>
|
<key>CFBundlePackageType</key>
|
||||||
<string>APPL</string>
|
<string>APPL</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
@@ -21,7 +21,7 @@
|
|||||||
<key>NSHighResolutionCapable</key>
|
<key>NSHighResolutionCapable</key>
|
||||||
<true/>
|
<true/>
|
||||||
<key>NSHumanReadableCopyright</key>
|
<key>NSHumanReadableCopyright</key>
|
||||||
<string>Copyright © 2020-2023 Dortania</string>
|
<string>Copyright © 2020-2024 Dortania</string>
|
||||||
<key>LSUIElement</key>
|
<key>LSUIElement</key>
|
||||||
<true/>
|
<true/>
|
||||||
</dict>
|
</dict>
|
||||||
|
|||||||
Reference in New Issue
Block a user