mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-06-20 22:20:53 +10:00
Build-Binary: : Fix misc typos
This commit is contained in:
@@ -40,7 +40,7 @@ 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 ommited GUI binary is built')
|
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')
|
||||||
@@ -56,7 +56,7 @@ class create_binary:
|
|||||||
# macOS (using Python installed by homebrew (e.g. brew))
|
# macOS (using Python installed by homebrew (e.g. brew))
|
||||||
if f"/usr/local/opt/python@3." in sys.executable:
|
if f"/usr/local/opt/python@3." in sys.executable:
|
||||||
print(f"\t* NOTE: home(brew) python3 detected; using (sys.exec_prefix, python_path) ==> {sys.exec_prefix, python_path}")
|
print(f"\t* NOTE: home(brew) python3 detected; using (sys.exec_prefix, python_path) ==> {sys.exec_prefix, python_path}")
|
||||||
# - under brew, pip3 will install pyinstall at:
|
# - under brew, pip3 will install pyinstaller at:
|
||||||
# /usr/local/lib/python3.9/site-packages/pyinstaller
|
# /usr/local/lib/python3.9/site-packages/pyinstaller
|
||||||
# and /usr/local/bin/pyinstaller stub to load and run.
|
# and /usr/local/bin/pyinstaller stub to load and run.
|
||||||
|
|
||||||
@@ -77,7 +77,7 @@ class create_binary:
|
|||||||
self.download_resources()
|
self.download_resources()
|
||||||
if not self.args.build_tui:
|
if not self.args.build_tui:
|
||||||
# payloads.dmg is only needed for GUI builds
|
# payloads.dmg is only needed for GUI builds
|
||||||
self.generate_paylods_dmg()
|
self.generate_payloads_dmg()
|
||||||
|
|
||||||
def postflight_processes(self):
|
def postflight_processes(self):
|
||||||
print("- Starting postflight processes")
|
print("- Starting postflight processes")
|
||||||
@@ -174,7 +174,7 @@ class create_binary:
|
|||||||
print(mv_output.stderr.decode('utf-8'))
|
print(mv_output.stderr.decode('utf-8'))
|
||||||
raise Exception("Move failed")
|
raise Exception("Move failed")
|
||||||
|
|
||||||
def generate_paylods_dmg(self):
|
def generate_payloads_dmg(self):
|
||||||
if Path("./payloads.dmg").exists():
|
if Path("./payloads.dmg").exists():
|
||||||
if self.args.reset_binaries:
|
if self.args.reset_binaries:
|
||||||
print(" - Removing old payloads.dmg")
|
print(" - Removing old payloads.dmg")
|
||||||
|
|||||||
Reference in New Issue
Block a user