-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsetup.py
53 lines (48 loc) · 1.51 KB
/
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
45
46
47
48
49
50
51
52
53
'''Witcher 3 Mod Manager cx_Freeze setup script'''
# pylint: disable=wildcard-import,unused-wildcard-import
from cx_Freeze import Executable, setup
from src.globals.constants import *
FILES = ["res/", "translations/", "tools/",
("res/qt.conf", "qt.conf"), "LICENSE"]
SHORTCUT_TABLE = [
(
"DesktopShortcut", # Shortcut
"DesktopFolder", # Directory_
TITLE, # Name
"TARGETDIR", # Component_
"[TARGETDIR]TheWitcher3ModManager.exe", # Target
None, # Arguments
None, # Description
None, # Hotkey
None, # Icon
None, # IconIndex
None, # ShowCmd
'TARGETDIR' # WkDir
),
]
MSI_DATA = {"Shortcut": SHORTCUT_TABLE}
BDIST_MSI_OPTIONS = {'data': MSI_DATA}
setup(
name=TITLE,
version=VERSION,
url=URL_WEB,
license='Open-source',
options={
"build_exe": {
"include_files": FILES,
"excludes": ["distutils", "patool"],
"optimize": 2,
"zip_include_packages": ["src"],
"include_msvcr": True
},
"bdist_msi": BDIST_MSI_OPTIONS},
author=AUTHORS[1],
author_email=AUTHORS_MAIL[1],
description=TITLE,
executables=[Executable(
"main.py",
targetName="TheWitcher3ModManager.exe",
icon='res/w3a.ico',
base="Win32GUI"
)]
)