16
16
17
17
def build_macos (
18
18
one_file : bool ,
19
- bundle_third_party : bool ,
20
19
):
21
20
pyinstaller_options = [
22
21
"--noconfirm" ,
@@ -28,19 +27,19 @@ def build_macos(
28
27
else :
29
28
pyinstaller_options += ["--onedir" ]
30
29
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 = []
40
39
41
40
added_data_options = [f"--add-data={ src } :{ dst } " for src , dst in added_files ]
42
41
43
- options = pyinstaller_options + added_data_options + added_binary_options
42
+ options = pyinstaller_options + added_data_options
44
43
45
44
logger .info (f"calling pyinstaller with options: { ' ' .join (options )} " )
46
45
subprocess .call (
@@ -107,9 +106,6 @@ def main(
107
106
one_file : bool = typer .Option (
108
107
False , "--one-file" , "-f" , help = "Build a single file executable"
109
108
),
110
- bundle_third_party : bool = typer .Option (
111
- True , "--bundle-third-party" , "-b" , help = "Bundle third party libraries"
112
- ),
113
109
):
114
110
if install_dir :
115
111
logger .info (f"removing app from { install_dir } " )
@@ -125,7 +121,6 @@ def main(
125
121
logger .info ("building for macOS" )
126
122
build_macos (
127
123
one_file = one_file ,
128
- bundle_third_party = bundle_third_party ,
129
124
)
130
125
elif sys .platform .startswith ("win" ):
131
126
logger .info ("building for Windows" )
0 commit comments