-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
40 lines (36 loc) · 913 Bytes
/
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
37
38
39
40
import sys
from pathlib import Path
from cx_Freeze import Executable, setup
# Dependencies are automatically detected, but it might need fine tuning.
# base="Win32GUI" should be used only for Windows GUI app
base = "Win32GUI" if sys.platform == "win32" else None
setup(
version = '2.1',
name = "Linker",
executables = [
Executable(
"install.py", base = base, target_name = 'Install', uac_admin = True, icon =
Path.cwd().joinpath('Icons').joinpath(
'Linker.ico'
)
),
Executable(
"uninstall.py", base = base, target_name = 'Uninstall', uac_admin = True, icon =
Path.cwd().joinpath('Icons').joinpath(
'Linker.ico'
)
),
Executable(
"linker.py", base = base, target_name = 'Linker', uac_admin = True, icon =
Path.cwd().joinpath('Icons').joinpath(
'Linker.ico'
)
)
],
options = {
'build_exe': {
'include_files': ['Icons'],
'silent_level': 1
},
}
)