-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
build.py
33 lines (32 loc) · 902 Bytes
/
build.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import os
import subprocess
cmd = [
"python",
"-m",
"PyInstaller",
"main.py", # your main file with ui.run()
"--name",
"WingmanAiCore", # name of your app
# "--onefile",
# "--windowed", # prevent console appearing, only use with ui.run(native=True, ...)
"--icon",
"assets/wingman-ai.ico",
"--noconfirm",
"--paths",
"venv/Lib/site-packages",
"--add-data",
f"venv/Lib/site-packages/azure/cognitiveservices/speech{os.pathsep}azure/cognitiveservices/speech",
"--add-data",
f"assets{os.pathsep}assets",
"--add-data",
f"services{os.pathsep}services",
"--add-data",
f"configs/system/config.example.yaml{os.pathsep}configs/system/.",
"--add-data",
f"wingmen{os.pathsep}wingmen",
"--add-data",
f"audio_samples{os.pathsep}audio_samples",
"--add-data",
f"LICENSE{os.pathsep}.",
]
subprocess.call(cmd)