chore: create build script for release
This commit is contained in:
32
build.py
Normal file
32
build.py
Normal 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
|
||||||
|
)
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
window:
|
window:
|
||||||
width: 800
|
width: 800
|
||||||
height: 600
|
height: 600
|
||||||
icon: "img/tetris_icon.png"
|
icon: "tetris_icon.png"
|
||||||
title: "Tetris"
|
title: "Tetris"
|
||||||
bg-color: "#6495ED" # cornflower-blue
|
bg-color: "#6495ED" # cornflower-blue
|
||||||
|
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Reference in New Issue
Block a user