-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
25 lines (21 loc) · 759 Bytes
/
setup.py
File metadata and controls
25 lines (21 loc) · 759 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
import sys
from cx_Freeze import setup, Executable
VERSION = '3.1.2'
# Dependencies are automatically detected, but it might need fine tuning.
# 'packages': ['os'] is used as example only
build_exe_options = {
'include_files': [('resources/icon.ico', 'resources/icon.ico')],
'optimize': 2,
'include_msvcr': True,
'build_exe': f'build/alttprhelper-{VERSION}'}
# base='Win32GUI' should be used only for Windows GUI app
base = None
if sys.platform == 'win32':
base = 'Win32GUI'
setup(
name='ALTTPR Helper',
version=VERSION,
description='An helper to solve my laziness problems',
options={'build_exe': build_exe_options},
executables=[Executable('gui.py', base=base, icon='resources/icon.ico', target_name='Helper')]
)