chore: improve build script for release
This commit is contained in:
17
build.py
17
build.py
@@ -1,13 +1,20 @@
|
||||
import cx_Freeze
|
||||
from cx_Freeze import setup, Executable
|
||||
import sys
|
||||
|
||||
executables = [cx_Freeze.Executable("main.py", base=None)]
|
||||
base = None
|
||||
if sys.platform == 'win32':
|
||||
base = "Win32GUI"
|
||||
|
||||
cx_Freeze.setup(
|
||||
# TODO add icon to cx freeze set up
|
||||
|
||||
setup(
|
||||
name="Tetris",
|
||||
version="0.1.0",
|
||||
description="Tetris Python Clone",
|
||||
options={
|
||||
"build_exe": {
|
||||
"packages": [
|
||||
"pygame",
|
||||
"pygame",
|
||||
"typing",
|
||||
"copy",
|
||||
"yaml",
|
||||
@@ -27,6 +34,6 @@ cx_Freeze.setup(
|
||||
]
|
||||
}
|
||||
},
|
||||
executables=executables
|
||||
executables=[Executable("main.py", base=base)]
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user