-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
executable file
·38 lines (33 loc) · 1.05 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import sys
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need fine tuning.
build_exe_options = {
"packages": ["os", "pygame"],
"excludes": ['_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger', 'pywin.debugger.dbgcon',
'pywin.dialogs', 'tcl', 'Tkconstants', 'Tkinter'],
"include_files": ["data"]
}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
base = "Win32GUI"
target = Executable(
script="run_game.pyw",
base=base,
targetName="HostilPlanet.exe",
compress=False,
copyDependentFiles=True,
appendScriptToExe=True,
appendScriptToLibrary=False,
icon="icon.ico",
shortcutName="Hostil Planet",
shortcutDir="DesktopFolder",
)
setup(name="Hostil Planet",
version="0.1",
author="Jauria Studios",
description="Hostil Planet by Jauria Studios",
options={"build_exe": build_exe_options},
executables=[target]
)