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.7.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/image/press-start-2p-font.bmp", "resource/image/press-start-2p-font.bmp"),
                ("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)]
)

