forked from MaurizioB/Bigglesworth
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_win.py
56 lines (48 loc) · 2.05 KB
/
setup_win.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
54
55
56
from cx_Freeze import setup, Executable
def read_version():
with open('bigglesworth/version.py', 'rb') as version_file:
exec(version_file.read())
return VERSION
# Dependencies are automatically detected, but it might need
# fine tuning.
files = [
'bigglesworth/FiraSans-Regular.ttf',
'bigglesworth/blofeld_efx',
'bigglesworth/blofeld_efx_ranges',
'bigglesworth/blofeld_params',
'bigglesworth/.bw_secret',
'bigglesworth/magnifying-glass.png',
'bigglesworth/dial_icon.png',
'bigglesworth/wt_icon.png',
'bigglesworth/bigglesworth_logo.png',
'bigglesworth/blofeld_logo.svg',
'bigglesworth/presets/blofeld_fact_200801.mid',
'bigglesworth/presets/blofeld_fact_200802.mid',
'bigglesworth/presets/blofeld_fact_201200.mid',
'bigglesworth/editor.ui',
'bigglesworth/main.ui',
'bigglesworth/wavetable.ui',
'bigglesworth/dialogs/about.ui',
'bigglesworth/dialogs/dumpdialog.ui',
'bigglesworth/dialogs/globals.ui',
'bigglesworth/dialogs/midi_import.ui',
'bigglesworth/dialogs/print_library.ui',
'bigglesworth/dialogs/settings.ui',
'bigglesworth/dialogs/summary.ui',
'bigglesworth/dialogs/wave_panel.ui',
'bigglesworth/dialogs/wavetable_undo.ui',
'bigglesworth/dialogs/wavetable_list.ui',
]
buildOptions = dict(packages = [], excludes = [], includes = ['atexit'], include_files = zip(files, files))
macbuildOptions = {'iconfile': 'icons/bigglesworth_icon.icns', 'bundle_name': 'Bigglesworth'}
dmgOptions = {'applications_shortcut': True}
import sys
base = 'Win32GUI' if sys.platform=='win32' else None
executables = [
Executable('Bigglesworth.py', base=base, icon='icons/bigglesworth_icon.ico')
]
setup(name='Bigglesworth',
version = read_version(),
description = 'Editor/librarian for Blofeld',
options = dict(build_exe = buildOptions, bdist_mac = macbuildOptions),
executables = executables)