-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
27 lines (24 loc) · 881 Bytes
/
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
from cx_Freeze import setup, Executable
import sys
# Dependencies are automatically detected, but it might need fine-tuning.
build_exe_options = {
"packages": ["os", "pymediainfo", "tkinter", "re"],
"includes": [],
"include_files": ["resources/"],
"excludes": [
"tkinter.test", "tkinter.tix", "unittest", "pydoc", "email",
"http", "logging", "test", "distutils", "multiprocessing", "http.client", "profile",
"turtle", "turtledemo", "unicodedata"
]
}
# base="Win32GUI" should be used only for Windows GUI app
base = None
if sys.platform == "win32":
base = "Win32GUI"
setup(
name="gerador-de-codigos",
version="2.0.2.2",
description="Gerador de codigos Making Off",
options={"build_exe": build_exe_options},
executables=[Executable("main.py", base=base, icon="resources/icon.ico")],
)