-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.py
39 lines (35 loc) · 1.06 KB
/
build.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import sys
import cx_Freeze
base = None
target_name = 'liac_chess'
if sys.platform == "win32":
base = "Win32GUI"
target_name = 'liac_chess.exe'
def main():
executables = [cx_Freeze.Executable(
"main.py",
targetName=target_name,
base=base,
)]
freezer = cx_Freeze.Freezer(executables,
includes=[],
excludes=['_gtkagg', '_tkagg', 'bsddb', 'curses', 'email',
'pywin.debugger', 'pywin.debugger.dbgcon', 'pywin.dialogs',
'tcl', 'Tkconstants', 'Tkinter'],
replacePaths=[],
compress=True,
optimizeFlag=1,
copyDependentFiles=True,
initScript=None,
base=None,
path=None,
createLibraryZip = False,
appendScriptToExe = True,
targetDir=None,
zipIncludes=[],
includeFiles=['assets/', 'docs/', 'data/'],
icon='assets/ico/liac_chess.ico',
silent=None)
freezer.Freeze()
if __name__ == '__main__':
main()