-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_win.py
More file actions
39 lines (34 loc) · 1.01 KB
/
Copy pathsetup_win.py
File metadata and controls
39 lines (34 loc) · 1.01 KB
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
# =====================================================================
def add_src_prefix(path): # helper function to add 'src/' prefix to paths
return f'src/{path}'
# =====================================================================
import src.globalVariables as GV
from cx_Freeze import setup, Executable
script = 'src/main.py'
icon_path = add_src_prefix(GV.ICON_PATH)
options = {
'build_exe': {
'packages': [],
'include_files': [
add_src_prefix(GV.REMOVE_BTN_IMG_PATH),
add_src_prefix(GV.ICON_PATH),
add_src_prefix(GV.INFO_BTN_IMG_PATH),
add_src_prefix(GV.FFMPEG_PATH)
],
},
}
# define the executables
executables = [
Executable(
script,
base="Win32GUI", # Use "Win32GUI" to avoid a console window
icon=icon_path
)
]
setup(
name=GV.APP_NAME,
version=GV.APP_VERSION,
description='Audio normalization tool',
options=options,
executables=executables
)