feat: improve msi build script
This commit is contained in:
20
build.py
20
build.py
@@ -5,13 +5,31 @@ base = None
|
|||||||
if sys.platform == 'win32':
|
if sys.platform == 'win32':
|
||||||
base = "Win32GUI"
|
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(
|
setup(
|
||||||
name="Tetri5",
|
name="Tetri5",
|
||||||
version="1.0.0",
|
version="1.0.0",
|
||||||
description="A full featured tetris game using python's pygame library. https://github.com/gio101046/tetri5",
|
description="A full featured tetris game using python's pygame library. https://github.com/gio101046/tetri5",
|
||||||
options={
|
options={
|
||||||
|
"bdist_msi": bdist_msi_options,
|
||||||
"build_exe": {
|
"build_exe": {
|
||||||
"packages": [
|
"packages": [
|
||||||
"pygame",
|
"pygame",
|
||||||
|
|||||||
Reference in New Issue
Block a user