feat: improve msi build script

This commit is contained in:
2021-07-16 22:26:19 +00:00
parent 50fe0bfe8c
commit 4e873cd792

View File

@@ -5,13 +5,31 @@ base = None
if sys.platform == 'win32':
base = "Win32GUI"
# TODO add icon to cx freeze set up
shortcut_table = [
("DesktopShortcut", # Shortcut
"DesktopFolder", # Directory_
"Tetri5", # Name
"TARGETDIR", # Component_
"[TARGETDIR]main.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}
setup(
name="Tetri5",
version="1.0.0",
description="A full featured tetris game using python's pygame library. https://github.com/gio101046/tetri5",
options={
"bdist_msi": bdist_msi_options,
"build_exe": {
"packages": [
"pygame",