-
Notifications
You must be signed in to change notification settings - Fork 0
/
cx.py
executable file
·39 lines (32 loc) · 1.51 KB
/
cx.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
#!/usr/bin/env python3
from cx_Freeze import setup, Executable
# Dependencies are automatically detected, but it might need
# fine tuning.
# Change some default MSI options
bdist_msi_options = {'upgrade_code': '0a059d05-7e7a-444a-8419-45957ad7b2a3'}
bdist_mac = {'iconfile': 'src/icons/pySpellbook.icns',
'bundle_name': 'pySpellbook',
}
bdist_dmg = {'volume_label':'Install pySpellbook',
'applications_shortcut': True}
buildOptions = dict(packages = ["pySpellbook",
"PySide",
"appdirs",
"jinja2",
"sqlalchemy"],
include_files = ["src/pySpellbook/templates/", "LICENSES/", "LICENSE.txt", "README.md", "src/pySpellbook/i18n/"],
include_msvcr = True,
excludes = [])
import sys
base = 'Win32GUI' if sys.platform=='win32' else None
executables = [
Executable('src/scripts/pySpellbook', base=base, targetName = 'pySpellbook.exe' if sys.platform == "win32" else "pySpellbook",
icon='src/icons/pySpellbook.ico', shortcutName="PySpellbook", shortcutDir="StartMenuFolder")
]
setup(name='pySpellbook',
version = '0.9',
description = 'A PDF spellbook creation utility for d20 games in python',
author = 'Christoph Stahl',
options = dict(build_exe = buildOptions, build_msi = bdist_msi_options,
bdist_mac = bdist_mac, bdist_dmg = bdist_dmg),
executables = executables)