-
Notifications
You must be signed in to change notification settings - Fork 15
/
setup.py
56 lines (50 loc) · 1.87 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
'include_files':['Slic3r', 'favicon.png'],
'include_msvcr': True
}
msi_data = {
"Shortcut":[
("DesktopShortcut",
"DesktopFolder",
"Skylight",
"TARGETDIR", # Component_
"[TARGETDIR]skylight.exe",# Target
None, # Arguments
None, # Description
None, # Hotkey
'favicon.ico', # Icon
None, # IconIndex
None, # ShowCmd
'TARGETDIR' # WkDir
),
("ProgramShortcut",
"ProgramMenuFolder",
"Skylight",
"TARGETDIR", # Component_
"[TARGETDIR]skylight.exe",# Target
None, # Arguments
None, # Description
None, # Hotkey
'favicon.ico', # Icon
None, # IconIndex
None, # ShowCmd
'TARGETDIR' # WkDir
)
]
}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup( name = "Skylight",
version = "0.26",
description='Skylight: A Simple DLP 3D printer controller',
author='Evan Ridenour',
author_email='eridenour@gmail.com',
url='https://github.com/evride/Skylight',
options = {"build_exe": build_exe_options},
executables = [Executable("main.py", base=base, icon='favicon.ico', targetName="skylight.exe", shortcutName="Skylight", shortcutDir="DesktopFolder")])