1
0
Fork 0
mirror of synced 2024-05-06 13:42:52 +12:00
Rare/freeze.py

50 lines
1 KiB
Python
Raw Normal View History

from cx_Freeze import setup, Executable
2021-09-02 05:41:01 +12:00
from rare import __version__
name = 'Rare'
author = 'Dummerle'
description = 'A GUI for 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
)
2021-09-03 09:38:11 +12:00
]
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]
)