1616
1717def build_macos (
1818 one_file : bool ,
19- bundle_third_party : bool ,
2019):
2120 pyinstaller_options = [
2221 "--noconfirm" ,
@@ -28,19 +27,19 @@ def build_macos(
2827 else :
2928 pyinstaller_options += ["--onedir" ]
3029
31- if bundle_third_party :
32- added_binaries = [
33- ("/usr/local/bin/wkhtmltopdf" , "." ),
34- ]
35- added_binary_options = [
36- f"--add-binary={ src } :{ dst } " for src , dst in added_binaries
37- ]
38- else :
39- added_binary_options = []
30+ # if bundle_third_party:
31+ # added_binaries = [
32+ # ("/usr/local/bin/wkhtmltopdf", "."),
33+ # ]
34+ # added_binary_options = [
35+ # f"--add-binary={src}:{dst}" for src, dst in added_binaries
36+ # ]
37+ # else:
38+ # added_binary_options = []
4039
4140 added_data_options = [f"--add-data={ src } :{ dst } " for src , dst in added_files ]
4241
43- options = pyinstaller_options + added_data_options + added_binary_options
42+ options = pyinstaller_options + added_data_options
4443
4544 logger .info (f"calling pyinstaller with options: { ' ' .join (options )} " )
4645 subprocess .call (
@@ -107,9 +106,6 @@ def main(
107106 one_file : bool = typer .Option (
108107 False , "--one-file" , "-f" , help = "Build a single file executable"
109108 ),
110- bundle_third_party : bool = typer .Option (
111- True , "--bundle-third-party" , "-b" , help = "Bundle third party libraries"
112- ),
113109):
114110 if install_dir :
115111 logger .info (f"removing app from { install_dir } " )
@@ -125,7 +121,6 @@ def main(
125121 logger .info ("building for macOS" )
126122 build_macos (
127123 one_file = one_file ,
128- bundle_third_party = bundle_third_party ,
129124 )
130125 elif sys .platform .startswith ("win" ):
131126 logger .info ("building for Windows" )
0 commit comments