-
-
Notifications
You must be signed in to change notification settings - Fork 38
/
build_macos.py
43 lines (41 loc) · 1.11 KB
/
build_macos.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
34
35
36
37
38
39
40
41
42
43
import os
import subprocess
cmd = [
"pyinstaller",
"main.py", # your main file
"--name",
"WingmanAiCore", # name of your app
"--noconfirm",
"--icon",
"assets/wingman-ai.ico",
"--paths",
f"{os.path.join('venv', 'lib', 'python3.11', 'site-packages')}", # adapted with venv/lib/python3.11/site-packages
"--add-data",
os.pathsep.join(
[
os.path.join(
"venv",
"lib",
"python3.11",
"site-packages",
"azure",
"cognitiveservices",
"speech",
),
"azure/cognitiveservices/speech",
]
),
"--add-data",
os.pathsep.join(["assets", "assets"]),
"--add-data",
os.pathsep.join(["services", "services"]),
"--add-data",
os.pathsep.join(["configs/system/config.example.yaml", "configs/system/."]),
"--add-data",
os.pathsep.join(["wingmen", "wingmen"]),
"--add-data",
os.pathsep.join(["audio_samples", "audio_samples"]),
"--add-data",
os.pathsep.join(["LICENSE", "."]),
]
subprocess.call(cmd)