-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathSAMPSON.spec
More file actions
71 lines (63 loc) · 1.66 KB
/
SAMPSON.spec
File metadata and controls
71 lines (63 loc) · 1.66 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# -*- mode: python ; coding: utf-8 -*-
from PyInstaller.utils.hooks import collect_data_files, collect_dynamic_libs
datas = []
datas += collect_data_files('pygame')
datas += [('ui/sampsontransparent2.png', '.'), ('ui/sampsontransparentwhite.png', '.')]
# Include UI files
datas += [('ui', 'ui')]
# Include static-ffmpeg binaries (bundled ffmpeg + ffprobe)
datas += collect_data_files('static_ffmpeg', include_py_files=False)
# Collect any dynamic libraries from static-ffmpeg
binaries = []
binaries += collect_dynamic_libs('static_ffmpeg')
# PyWebView may need additional data files on some platforms
try:
import pywebview
datas += collect_data_files('pywebview')
except ImportError:
pass
a = Analysis(
['main.py'],
pathex=[],
binaries=binaries,
datas=datas,
hiddenimports=['pywebview', 'pywebview.util', 'webview'],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=['librosa', 'numpy', 'aubio', 'tkinter', 'customtkinter', 'twine'],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='SAMPSON',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
app = BUNDLE(
exe,
name='SAMPSON.app',
icon=None,
bundle_identifier='com.zacharylouden.sampson',
info_plist={
'CFBundleShortVersionString': '0.9.0',
'CFBundleVersion': '0.9.0',
'NSHighResolutionCapable': True,
},
)