Skip to content

Commit

Permalink
updated installer
Browse files Browse the repository at this point in the history
  • Loading branch information
PK-cod3ch3mist committed Nov 30, 2023
1 parent 75d67d8 commit 5ac62d7
Showing 1 changed file with 31 additions and 2 deletions.
33 changes: 31 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,48 @@

import cx_Freeze

base = None
if cx_Freeze.sys.platform == "win32":
base = "Win32GUI"

executables = [
cx_Freeze.Executable(
script="main.py", icon="icon.ico", target_name="The Eighth Run"
script="main.py", icon="icon.ico", target_name="The Eighth Run", base=base
),
]

build_exe_options = {"packages": ["pygame"], "include_files": ["assets"]}

bdist_dmg_options = {"applications_shortcut": True, "volume_label": "The Eighth Run"}

shortcut_table = [
(
"DesktopShortcut",
"DesktopFolder",
"The Eighth Run",
"TARGETDIR",
"[TARGETDIR]The Eighth Run.exe",
None,
None,
None,
None,
None,
None,
"TARGETDIR",
)
]
msi_data = {"Shortcut": shortcut_table}
bdist_msi_options = {"data": msi_data}

cx_Freeze.setup(
name="The Eighth Run",
version="1.0",
description="A game made for the GitHub Game Off 2023",
author="Pratyush Kumar",
options={"build_exe": {"packages": ["pygame"], "include_files": ["assets"]}},
options={
"build_exe": build_exe_options,
"bdist_dmg": bdist_dmg_options,
"bdist_msi": bdist_msi_options,
},
executables=executables,
)

0 comments on commit 5ac62d7

Please sign in to comment.