2021-08-31 06:34:53 +12:00
|
|
|
from cx_Freeze import setup, Executable
|
|
|
|
|
2021-09-02 05:41:01 +12:00
|
|
|
from rare import __version__
|
|
|
|
|
2023-06-14 07:25:01 +12:00
|
|
|
name = 'Rare'
|
|
|
|
author = 'Dummerle'
|
|
|
|
description = 'A GUI for Legendary'
|
|
|
|
|
2021-09-05 10:54:43 +12:00
|
|
|
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
|
|
|
]
|
|
|
|
|
2021-09-05 10:54:43 +12:00
|
|
|
msi_data = {"Shortcut": shortcut_table}
|
2023-06-14 07:25:01 +12:00
|
|
|
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}'
|
|
|
|
}
|
2021-09-05 10:54:43 +12:00
|
|
|
base = "Win32GUI"
|
|
|
|
|
2023-06-14 07:25:01 +12:00
|
|
|
exe = Executable(
|
2023-09-03 07:23:36 +12:00
|
|
|
"rare/main.py",
|
|
|
|
base=base,
|
|
|
|
icon="rare/resources/images/Rare.ico",
|
|
|
|
target_name=name
|
|
|
|
)
|
2023-06-14 07:25:01 +12:00
|
|
|
|
2021-09-05 10:54:43 +12:00
|
|
|
setup(
|
2023-06-14 07:25:01 +12:00
|
|
|
name=name,
|
2021-09-05 10:54:43 +12:00
|
|
|
version=__version__,
|
2023-06-14 07:25:01 +12:00
|
|
|
author=author,
|
|
|
|
description=description,
|
2021-09-05 10:54:43 +12:00
|
|
|
options={
|
|
|
|
"bdist_msi": bdist_msi_options,
|
|
|
|
},
|
2023-06-14 07:25:01 +12:00
|
|
|
executables=[exe]
|
2021-09-05 10:54:43 +12:00
|
|
|
)
|