43 lines
1.2 KiB
Python
43 lines
1.2 KiB
Python
from cx_Freeze import setup, Executable
|
|
import sys
|
|
|
|
base = None
|
|
if sys.platform == 'win32':
|
|
base = "Win32GUI"
|
|
|
|
# TODO add icon to cx freeze set up
|
|
|
|
setup(
|
|
name="Tetris",
|
|
version="0.4.0",
|
|
description="Tetris Python Clone",
|
|
options={
|
|
"build_exe": {
|
|
"packages": [
|
|
"pygame",
|
|
"typing",
|
|
"copy",
|
|
"yaml",
|
|
"random",
|
|
"sys",
|
|
"entity.Entity",
|
|
"entity.Piece",
|
|
"entity.Stack",
|
|
"entity.Well",
|
|
"util.ConfigurationManager",
|
|
"util.PieceGenerator",
|
|
"Tetris"
|
|
],
|
|
"include_files": [
|
|
("config.yaml", "config.yaml"),
|
|
("resource/image/tetris_icon.png", "resource/image/tetris_icon.png"),
|
|
("resource/sound/main_music.ogg", "resource/sound/main_music.ogg"),
|
|
("resource/sound/piece_set_3.wav", "resource/sound/piece_set_3.wav"),
|
|
("resource/sound/row_completion.wav", "resource/sound/row_completion.wav")
|
|
]
|
|
}
|
|
},
|
|
executables=[Executable("main.py", base=base)]
|
|
)
|
|
|