forked from JMoore11235/GU_Deck_Tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
29 lines (25 loc) · 1.01 KB
/
setup.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
import sys
from cx_Freeze import setup, Executable
from version import VERSION
# Dependencies are automatically detected, but it might need fine tuning.
# "packages": ["os"] is used as example only
# build_exe_options = {"packages": ["os"], "excludes": ["lib2to3", "logging", "test", "tkinter", "unittest", "xml", "tkinter"]}
excludes = ["tkinter"]
include_files = [('data/data.json', 'data/data.json'), ('data/opponent.json', 'data/opponent.json'), ('media/logo.ico', 'media/logo.ico'), 'config.txt', ('README.md', 'readme.txt')]
options = {
'build_exe': {
'include_msvcr': True,
'excludes': excludes,
'include_files': include_files,
}}
# base="Win32GUI" should be used only for Windows GUI app
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name="GU_Deck_Tracker",
version=VERSION[1:],
description="GU_Deck_Tracker",
options=options,
executables=[Executable('main.py', base=base, icon='./media/logo.ico', targetName=f'GU_Deck_Tracker_{VERSION}.exe')],
)