Skip to content

Commit 4559524

Browse files
committed
fix windows build script
1 parent 0f26bf0 commit 4559524

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/build_app.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
("templates", "./templates"),
1414
]
1515

16-
added_data_options = [f"--add-data={src}:{dst}" for src, dst in added_files]
16+
if sys.platform.startswith("win"):
17+
added_data_options = [f"--add-data={src};{dst}" for src, dst in added_files]
18+
else:
19+
added_data_options = [f"--add-data={src}:{dst}" for src, dst in added_files]
1720

1821

1922
def build_macos(
@@ -76,9 +79,6 @@ def build_windows(
7679
else:
7780
pyinstaller_options += ["--onedir"]
7881

79-
# on Windows the separator is a semicolon
80-
added_data_options = [option.replace(":", ";") for option in added_data_options]
81-
8282
options = pyinstaller_options + added_data_options
8383

8484
logger.info(f"calling pyinstaller with options: {' '.join(options)}")

0 commit comments

Comments
 (0)