-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsetup.py
25 lines (21 loc) · 997 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
import sys
from cx_Freeze import setup, Executable
from RandomizerCore.randomizer_data import VERSION
build_exe_options = {"packages": ["os"],
"excludes": ["tkinter", "unittest", "sqlite3", "numpy", "matplotlib", "zstandard"],
"zip_include_packages": ["encodings", "PySide6"],
"include_files": ["RandomizerCore/Data", "RandomizerUI/Resources", "version.txt"],
"optimize": 2}
base = None
if sys.platform == "win32":
base = "Win32GUI"
build_icon = "RandomizerUI/Resources/icon.ico"
if sys.platform == "darwin": # mac
build_icon = "RandomizerUI/Resources/icon.icns"
setup(
name = "Links Awakening Switch Randomizer",
version = f"{VERSION}",
description = "A randomizer for The Legend of Zelda: Link's Awakening remake!",
options = {"build_exe": build_exe_options},
executables = [Executable("randomizer.py", base=base, target_name="Links Awakening Switch Randomizer", icon=build_icon)]
)