-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
42 lines (34 loc) · 897 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
import sys
from cx_Freeze import Executable, setup
from src.main import VERSION_NUM
base = None
if sys.platform == "win32":
base = "Win32GUI"
if sys.platform == "linux":
target_name = "ImageHeat-" + VERSION_NUM + ".elf"
else:
target_name = "ImageHeat-" + VERSION_NUM + ".exe"
executables = [
Executable(
"src/main.py",
copyright="Copyright (C) 2024 Bartlomiej Duda",
base=base,
icon="src/data/img/heat_icon.ico",
target_name=target_name,
)
]
build_exe_options: dict = {
"build_exe": "build_final/ImageHeat",
"packages": [],
"includes": [],
"excludes": [],
"include_files": [],
}
options: dict = {"build_exe": build_exe_options}
setup(
name="ImageHeat " + VERSION_NUM,
version=VERSION_NUM[1:],
description="Tool for viewing graphics from games",
options=options,
executables=executables,
)