-
Notifications
You must be signed in to change notification settings - Fork 6
/
qitv-macos.spec
64 lines (60 loc) · 1.62 KB
/
qitv-macos.spec
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
# -*- mode: python ; coding: utf-8 -*-
VLC_PATH = '/Applications/VLC.app/Contents' # Adjust this path if necessary
a = Analysis(
['main.py'],
pathex=[VLC_PATH],
binaries=[
(os.path.join(VLC_PATH, 'MacOS/plugins/*'), 'plugins'),
],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
noarchive=False,
#https://github.com/pyinstaller/pyinstaller/issues/7851#issuecomment-1677986648
module_collection_mode={
'vlc': 'py',
}
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries + [
("libvlc.dylib", os.path.join(VLC_PATH, 'MacOS/lib/libvlc.dylib'), "BINARY"),
("libvlccore.dylib", os.path.join(VLC_PATH, 'MacOS/lib/libvlccore.dylib'), "BINARY")
],
#a.binaries,
a.datas,
[],
name='QiTV',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
icon='assets/qitv.icns',
)
app = BUNDLE(
exe,
name='QiTV.app',
icon='assets/qitv.icns',
bundle_identifier='com.ozankaraali.QiTV',
version='1.1.2',
info_plist={
'CFBundleDisplayName': 'QiTV',
'CFBundleExecutable': 'QiTV',
'CFBundleIdentifier': 'com.ozankaraali.QiTV',
'CFBundleInfoDictionaryVersion': '6.0',
'CFBundleName': 'QiTV',
'CFBundlePackageType': 'APPL',
'CFBundleShortVersionString': '1.0.0',
'CFBundleVersion': '1.0.0',
'LSApplicationCategoryType': 'public.app-category.video',
'NSHighResolutionCapable': True,
'NSPrincipalClass': 'NSApplication',
}
)