-
Notifications
You must be signed in to change notification settings - Fork 24
/
freeze_msi.py
49 lines (43 loc) · 1.07 KB
/
freeze_msi.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
from cx_Freeze import setup, Executable
from rare import __version__
name = 'Rare'
author = 'RareDevs'
description = 'Open source alternative for Epic Games Launcher, using Legendary'
shortcut_table = [
("DesktopShortcut", # Shortcut
"DesktopFolder", # Directory_
"Rare", # Name
"TARGETDIR", # Component_
"[TARGETDIR]Rare.exe", # Target
None, # Arguments
None, # Description
None, # Hotkey
None, # Icon
None, # IconIndex
None, # ShowCmd
'TARGETDIR' # WkDir
)
]
msi_data = {"Shortcut": shortcut_table}
bdist_msi_options = {
'data': msi_data,
# generated with str(uuid.uuid3(uuid.NAMESPACE_DNS, 'io.github.dummerle.rare')).upper()
'upgrade_code': '{85D9FCC2-733E-3D74-8DD4-8FE33A07ADF8}'
}
base = "Win32GUI"
exe = Executable(
"rare/main.py",
base=base,
icon="rare/resources/images/Rare.ico",
target_name=name
)
setup(
name=name,
version=__version__,
author=author,
description=description,
options={
"bdist_msi": bdist_msi_options,
},
executables=[exe]
)