-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (31 loc) · 793 Bytes
/
Copy pathsetup.py
File metadata and controls
36 lines (31 loc) · 793 Bytes
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
import sys
import os
from cx_Freeze import setup, Executable
paths = []
paths.extend(sys.path)
paths.append('src')
build_exe_options = {
'packages': [],
'path': paths,
'include_files': ['graphics.json', 'level-data.json', 'entities', 'fonts', 'res', 'renderlib.dll', 'LICENSE', 'README.md'],
'optimize': 2,
'compressed': True,
'icon': 'res/icon-diamond.ico',
'include_msvcr': True
}
build_exe_options['path'].append('src')
base = None
if sys.platform == 'win32':
base = 'Win32GUI'
exe = Executable(
'src/main.py',
base=base,
targetName=os.environ['app_name_lower'] + '.exe'
)
setup(
name = os.environ['app_title'],
version = os.environ['app_version_value'],
description = os.environ['app_description'],
options = {'build_exe': build_exe_options},
executables = [exe]
)