Skip to content

Commit cfa8b3b

Browse files
authored
Alter behaviour of build file
1 parent 6271c2b commit cfa8b3b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

build.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@
1111

1212
import PyInstaller.__main__
1313

14-
delim = ';' if platform.system() == 'Windows' else ':'
1514

16-
17-
# Install with ffmpeg binary
18-
PyInstaller.__main__.run([
15+
args = [arg for arg in [
1916
'launcher.py',
2017
'--name',
2118
f'{"swish" if platform.system() == "Windows" else "swish-linux" if platform.system() == "Linux" else "swish"}',
@@ -25,6 +22,8 @@
2522
'_bootlocale',
2623
'--onefile',
2724
f'{"--add-binary" if platform.system() != "Linux" else ""}',
28-
f'{"./bin/ffmpeg.exe;." if platform.system() == "Windows" else "" if platform.system() == "Linux" else "./bin/ffmpeg:."}',
25+
f'{"./bin/ffmpeg.exe;." if platform.system() == "Windows" else "" if platform.system() == "Linux" else "./bin/ffmpeg:."}'
26+
] if arg]
2927

30-
])
28+
# Install with ffmpeg binary
29+
PyInstaller.__main__.run(args)

0 commit comments

Comments
 (0)