mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 14:10:51 +10:00
Toolchain: Remove TUI building argument
This commit is contained in:
+3
-12
@@ -40,7 +40,6 @@ class create_binary:
|
|||||||
|
|
||||||
def parse_arguments(self):
|
def parse_arguments(self):
|
||||||
parser = argparse.ArgumentParser(description='Builds OpenCore-Patcher binary')
|
parser = argparse.ArgumentParser(description='Builds OpenCore-Patcher binary')
|
||||||
parser.add_argument('--build_tui', action='store_true', help='Builds TUI binary, if omitted GUI binary is built')
|
|
||||||
parser.add_argument('--branch', type=str, help='Git branch name')
|
parser.add_argument('--branch', type=str, help='Git branch name')
|
||||||
parser.add_argument('--commit', type=str, help='Git commit URL')
|
parser.add_argument('--commit', type=str, help='Git commit URL')
|
||||||
parser.add_argument('--commit_date', type=str, help='Git commit date')
|
parser.add_argument('--commit_date', type=str, help='Git commit date')
|
||||||
@@ -75,14 +74,10 @@ class create_binary:
|
|||||||
self.setup_pathing()
|
self.setup_pathing()
|
||||||
self.delete_extra_binaries()
|
self.delete_extra_binaries()
|
||||||
self.download_resources()
|
self.download_resources()
|
||||||
if not self.args.build_tui:
|
self.generate_payloads_dmg()
|
||||||
# payloads.dmg is only needed for GUI builds
|
|
||||||
self.generate_payloads_dmg()
|
|
||||||
|
|
||||||
def postflight_processes(self):
|
def postflight_processes(self):
|
||||||
print("- Starting postflight processes")
|
print("- Starting postflight processes")
|
||||||
if self.args.build_tui:
|
|
||||||
self.move_launcher()
|
|
||||||
self.patch_load_command()
|
self.patch_load_command()
|
||||||
self.add_commit_data()
|
self.add_commit_data()
|
||||||
self.post_flight_cleanup()
|
self.post_flight_cleanup()
|
||||||
@@ -101,12 +96,8 @@ class create_binary:
|
|||||||
raise Exception("Remove failed")
|
raise Exception("Remove failed")
|
||||||
|
|
||||||
|
|
||||||
if self.args.build_tui:
|
print("- Building GUI binary...")
|
||||||
print("- Building TUI binary...")
|
build_args = [self.pyinstaller_path, "./OpenCore-Patcher-GUI.spec", "--noconfirm"]
|
||||||
build_args = [self.pyinstaller_path, "./OpenCore-Patcher.spec", "--noconfirm"]
|
|
||||||
else:
|
|
||||||
print("- Building GUI binary...")
|
|
||||||
build_args = [self.pyinstaller_path, "./OpenCore-Patcher-GUI.spec", "--noconfirm"]
|
|
||||||
|
|
||||||
build_result = subprocess.run(build_args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
build_result = subprocess.run(build_args, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
if build_result.returncode != 0:
|
if build_result.returncode != 0:
|
||||||
|
|||||||
@@ -68,7 +68,6 @@ pip3 install pyinstaller
|
|||||||
cd ~/Developer/OpenCore-Legacy-Patcher/
|
cd ~/Developer/OpenCore-Legacy-Patcher/
|
||||||
# Create the pyinstaller based Application
|
# Create the pyinstaller based Application
|
||||||
# Optional Arguments
|
# Optional Arguments
|
||||||
# '--build_tui': Create TUI vairant (deprecated)
|
|
||||||
# '--reset_binaries': Redownload and generate support files
|
# '--reset_binaries': Redownload and generate support files
|
||||||
python3 Build-Binary.command
|
python3 Build-Binary.command
|
||||||
# Open build folder
|
# Open build folder
|
||||||
|
|||||||
Reference in New Issue
Block a user