-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
35 lines (30 loc) · 783 Bytes
/
setup.py
File metadata and controls
35 lines (30 loc) · 783 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
# setup.py
import os
from cx_Freeze import setup, Executable
# ---- Metadata ----
APP_NAME = "soundcloud-to-tiermaker"
APP_VERSION = input("Version (e.g., 1.0.0): ") or "1.0.0"
APP_VERSION = APP_VERSION.strip()
ENTRYPOINT = "gui.py"
# ---- Dependencies ----
build_exe_options = {
"packages": [],
"excludes": [],
"include_files": [
"README.md"
],
}
# ---- Executable target ----
base = "Win32GUI" if os.name == "nt" else None
executables = [
Executable(ENTRYPOINT, base=base, target_name=APP_NAME.lower())
]
# ---- Setup ----
setup(
name=APP_NAME,
version=APP_VERSION,
description=APP_NAME,
options={"build_exe": build_exe_options},
executables=executables,
)
os.system(f"explorer {os.path.abspath('./build/exe.win-amd64-3.11')}")