chore: create build script for release

This commit is contained in:
2021-06-08 19:36:40 -04:00
parent 52cbec5a8f
commit 49ac4a5f5b
3 changed files with 33 additions and 1 deletions

32
build.py Normal file
View File

@@ -0,0 +1,32 @@
import cx_Freeze
executables = [cx_Freeze.Executable("main.py", base=None)]
cx_Freeze.setup(
name="Tetris",
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",
"tetris_icon.png"
]
}
},
executables=executables
)

View File

@@ -1,7 +1,7 @@
window:
width: 800
height: 600
icon: "img/tetris_icon.png"
icon: "tetris_icon.png"
title: "Tetris"
bg-color: "#6495ED" # cornflower-blue

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB