40 lines
1.1 KiB
Python
40 lines
1.1 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.5.0",
|
|
description="Tetris Python Clone",
|
|
options={
|
|
"build_exe": {
|
|
"packages": [
|
|
"pygame",
|
|
"typing",
|
|
"copy",
|
|
"yaml",
|
|
"random",
|
|
"sys",
|
|
"tetris.entity",
|
|
"tetris.game",
|
|
"tetris.util"
|
|
],
|
|
"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"),
|
|
("resource/font/gravity-font.bmp", "resource/font/gravity-font.bmp")
|
|
]
|
|
}
|
|
},
|
|
executables=[Executable("main.py", base=base)]
|
|
)
|
|
|