-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (36 loc) · 991 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from __future__ import annotations
from cx_Freeze import Executable, setup
from src.version import VERSION
try:
from cx_Freeze.hooks import get_qt_plugins_paths
except ImportError:
get_qt_plugins_paths = None
include_files = ["appdata", "languages"]
if get_qt_plugins_paths:
include_files += get_qt_plugins_paths("PySide6", "platform")
base = "Win32GUI"
build_exe_options = {
"optimize": 2,
"includes": [
"optparse",
"html.parser",
"uuid",
"fileinput",
"xml.etree.ElementTree",
"ctypes.wintypes",
"asyncio"
],
"excludes": [
"tkinter",
"yt_dlp"],
"include_files": include_files,
"zip_include_packages": ["PySide6"],
}
executables = [Executable("main.py", base=base, icon="appdata/images/app-icon.ico")]
setup(
name="youtube_downloader",
version=VERSION,
description="Youtube Downloader",
options={"build_exe": build_exe_options},
executables=executables,
)