58 lines
2.2 KiB
Python
58 lines
2.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="Tetri5",
|
|
version="1.0.0",
|
|
description="A full featured tetris game using python's pygame library. https://github.com/gio101046/tetri5",
|
|
options={
|
|
"build_exe": {
|
|
"packages": [
|
|
"pygame",
|
|
"typing",
|
|
"types",
|
|
"copy",
|
|
"yaml",
|
|
"random",
|
|
"sys",
|
|
"asyncio",
|
|
"websockets",
|
|
"json",
|
|
"queue",
|
|
"uuid",
|
|
"threading",
|
|
"tetri5.entity",
|
|
"tetri5.game",
|
|
"tetri5.modal",
|
|
"tetri5.online",
|
|
"tetri5.scene",
|
|
"tetri5.util"
|
|
],
|
|
"include_files": [
|
|
("config.yaml", "config.yaml"),
|
|
("resource/image/press-start-2p-font.bmp", "resource/image/press-start-2p-font.bmp"),
|
|
("resource/image/tetris_icon.png", "resource/image/tetris_icon.png"),
|
|
("resource/image/title_screen.png", "resource/image/title_screen.png"),
|
|
("resource/sound/four_lines_complete.ogg", "resource/sound/four_lines_complete.ogg"),
|
|
("resource/sound/game_over.ogg", "resource/sound/game_over.ogg"),
|
|
("resource/sound/level_up.ogg", "resource/sound/level_up.ogg"),
|
|
("resource/sound/line_complete.ogg", "resource/sound/line_complete.ogg"),
|
|
("resource/sound/option_change.wav", "resource/sound/option_change.wav"),
|
|
("resource/sound/piece_rotate.ogg", "resource/sound/piece_rotate.ogg"),
|
|
("resource/sound/piece_set.ogg", "resource/sound/piece_set.ogg"),
|
|
("resource/sound/theme_music_multi.ogg", "resource/sound/theme_music_multi.ogg"),
|
|
("resource/sound/theme_music_single.ogg", "resource/sound/theme_music_single.ogg"),
|
|
("resource/sound/you_win.ogg", "resource/sound/you_win.ogg")
|
|
]
|
|
}
|
|
},
|
|
executables=[Executable("main.py", base=base)]
|
|
)
|
|
|