-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
52 lines (48 loc) · 1.74 KB
/
Copy pathsetup.py
File metadata and controls
52 lines (48 loc) · 1.74 KB
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
import sys
from cx_Freeze import setup, Executable
from src.version import version
sys.path.append("src")
# Dependencies are automatically detected, but it might need
# fine tuning.
buildOptions = {
"build_exe": {
"packages": [],
"includes": ["bottle_websocket", "numpy"],
"excludes": ["PySide2", "PyQt5", "matplotlib.tests", "numpy.random._examples"],
"include_files": [
("Changelog.md", "Changelog.md"),
("README.md", "README.md"),
("README.html", "README.html"),
("templates", "templates"),
("client/dist", "client/dist")
]
},
"bdist_mac": {
"iconfile": "client/public/logo.icns"
},
"bdist_dmg": {
"volume_label": "R20Converter-{}".format(version),
"applications_shortcut": True
}
}
# GUI applications require a different base on Windows (the default is for a
# console application).
base = None
if sys.platform == "win32":
base = "Win32GUI"
buildOptions["build_exe"]["include_files"].append(("electron", "electron"))
buildOptions["build_exe"]["includes"].append("tkinter")
buildOptions["build_exe"]["excludes"].append("wx")
buildOptions["build_exe"]["excludes"].append("numpy")
if sys.platform == "darwin":
buildOptions["build_exe"]["includes"].append("wx")
buildOptions["build_exe"]["excludes"].append("tkinter")
executables = [
Executable('src/main.py', base=base, target_name = 'R20Converter', icon = "client/public/logo.ico")
]
setup(name='R20Converter',
version = version,
description = 'Convert a Roll 20 Campaign into a Foundry VTT world',
options = buildOptions,
executables = executables
)