-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.py
More file actions
19 lines (18 loc) · 708 Bytes
/
build.py
File metadata and controls
19 lines (18 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import PyInstaller.__main__
import os, sys
if __name__ == "__main__":
sep = ";" if sys.platform.startswith("win") else ":"
PyInstaller.__main__.run([
"main.py",
"--onefile",
"--noconsole",
f"--icon={os.path.abspath('cloudflared.ico')}",
f"--add-data={os.path.abspath('cloudflared.ico')}{sep}.",
f"--add-data={os.path.abspath('ui')}{sep}ui",
f"--add-data={os.path.abspath('data')}{sep}data",
f"--add-data={os.path.abspath('lenguaje')}{sep}lenguaje",
f"--add-data={os.path.abspath('ui/wechat.png')}{sep}ui",
f"--add-data={os.path.abspath('ui/usdt.png')}{sep}ui",
"--clean",
"--name=CloudflaredGUI"
])