fix: address missing files and modules in build
This commit is contained in:
38
build.py
38
build.py
@@ -8,29 +8,47 @@ if sys.platform == 'win32':
|
|||||||
# TODO add icon to cx freeze set up
|
# TODO add icon to cx freeze set up
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="Tetris",
|
name="Tetri5",
|
||||||
version="0.7.0",
|
version="1.0.0",
|
||||||
description="Tetris Python Clone",
|
description="A full featured tetris game using python's pygame library. https://github.com/gio101046/tetri5",
|
||||||
options={
|
options={
|
||||||
"build_exe": {
|
"build_exe": {
|
||||||
"packages": [
|
"packages": [
|
||||||
"pygame",
|
"pygame",
|
||||||
"typing",
|
"typing",
|
||||||
|
"types",
|
||||||
"copy",
|
"copy",
|
||||||
"yaml",
|
"yaml",
|
||||||
"random",
|
"random",
|
||||||
"sys",
|
"sys",
|
||||||
"tetris.entity",
|
"asyncio",
|
||||||
"tetris.game",
|
"websockets",
|
||||||
"tetris.util"
|
"json",
|
||||||
|
"queue",
|
||||||
|
"uuid",
|
||||||
|
"threading",
|
||||||
|
"tetri5.entity",
|
||||||
|
"tetri5.game",
|
||||||
|
"tetri5.modal",
|
||||||
|
"tetri5.online",
|
||||||
|
"tetri5.scene",
|
||||||
|
"tetri5.util"
|
||||||
],
|
],
|
||||||
"include_files": [
|
"include_files": [
|
||||||
("config.yaml", "config.yaml"),
|
("config.yaml", "config.yaml"),
|
||||||
("resource/image/tetris_icon.png", "resource/image/tetris_icon.png"),
|
|
||||||
("resource/image/press-start-2p-font.bmp", "resource/image/press-start-2p-font.bmp"),
|
("resource/image/press-start-2p-font.bmp", "resource/image/press-start-2p-font.bmp"),
|
||||||
("resource/sound/main_music.ogg", "resource/sound/main_music.ogg"),
|
("resource/image/tetris_icon.png", "resource/image/tetris_icon.png"),
|
||||||
("resource/sound/piece_set_3.wav", "resource/sound/piece_set_3.wav"),
|
("resource/image/title_screen.png", "resource/image/title_screen.png"),
|
||||||
("resource/sound/row_completion.wav", "resource/sound/row_completion.wav"),
|
("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")
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
import sys
|
|
||||||
import pygame
|
import pygame
|
||||||
from types import FunctionType
|
from types import FunctionType
|
||||||
from tetri5.util import ConfigurationManager
|
from tetri5.util import ConfigurationManager
|
||||||
|
|||||||
Reference in New Issue
Block a user