Toolchain: Remove TUI building argument

This commit is contained in:
Mykola Grymalyuk
2023-02-09 18:16:12 -07:00
parent c5eb52ac5e
commit 594f6dcbe5
2 changed files with 3 additions and 13 deletions
-9
View File
@@ -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:
# payloads.dmg is only needed for GUI builds
self.generate_payloads_dmg() 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,10 +96,6 @@ class create_binary:
raise Exception("Remove failed") raise Exception("Remove failed")
if self.args.build_tui:
print("- Building TUI binary...")
build_args = [self.pyinstaller_path, "./OpenCore-Patcher.spec", "--noconfirm"]
else:
print("- Building GUI binary...") print("- Building GUI binary...")
build_args = [self.pyinstaller_path, "./OpenCore-Patcher-GUI.spec", "--noconfirm"] build_args = [self.pyinstaller_path, "./OpenCore-Patcher-GUI.spec", "--noconfirm"]
-1
View File
@@ -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