Skip to content

Commit 1f6133f

Browse files
committed
updated requirements and build script
1 parent 20664cf commit 1f6133f

File tree

2 files changed

+11
-15
lines changed

2 files changed

+11
-15
lines changed

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ babel
88
loguru
99
pandera
1010
weasyprint
11+
pandera
1112

1213
flet
1314
pyicloud

scripts/build_app.py

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
def 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

Comments
 (0)