forked from tecwindow/albayan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
36 lines (30 loc) · 1.08 KB
/
setup.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
import sys
import os
from cx_Freeze import setup, Executable
import PyQt6
pyqt_path = os.path.dirname(PyQt6.__file__)
# Include additional files and DLLs
include_files = [("database", "database"), ("Audio", "Audio"), ("bass.dll", "bass.dll")]
dll_files = ["Qt6Core.dll", "Qt6Gui.dll", "Qt6Widgets.dll", "Qt6Network.dll"]
for file in dll_files:
include_files.append((os.path.join(pyqt_path, "Qt6", "bin", file), os.path.join("lib", file)))
build_exe_options = {
"build_exe": "albayan_build",
"optimize": 1,
"include_files": include_files,
"packages": ["core_functions", "theme", "ui", "utils"],
"includes": ["PyQt6.QtCore", "PyQt6.QtWidgets", "PyQt6.QtGui", "PyQt6.QtMultimedia", "packaging", "requests", "UniversalSpeech"],
"excludes": ["tkinter", "test", "setuptools", "pip", "numpy"],
"include_msvcr": True
}
description = "albayan"
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name="albayan",
version="1.2.4",
description=description,
options={"build_exe": build_exe_options},
executables=[Executable("main.py", base=base)]
)