File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 13
13
("templates" , "./templates" ),
14
14
]
15
15
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 ]
17
20
18
21
19
22
def build_macos (
@@ -76,9 +79,6 @@ def build_windows(
76
79
else :
77
80
pyinstaller_options += ["--onedir" ]
78
81
79
- # on Windows the separator is a semicolon
80
- added_data_options = [option .replace (":" , ";" ) for option in added_data_options ]
81
-
82
82
options = pyinstaller_options + added_data_options
83
83
84
84
logger .info (f"calling pyinstaller with options: { ' ' .join (options )} " )
You can’t perform that action at this time.
0 commit comments