-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMA2TimecodeCut.spec
More file actions
56 lines (51 loc) · 1.46 KB
/
Copy pathMA2TimecodeCut.spec
File metadata and controls
56 lines (51 loc) · 1.46 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
# -*- mode: python ; coding: utf-8 -*-
# PyInstaller spec — used unchanged on macOS and Windows.
# pyinstaller --noconfirm MA2TimecodeCut.spec
# Entry point gui.py imports ma2_tc_cut.py and tcshow.py from the same folder,
# so PyInstaller's analysis picks them up automatically.
import sys
APP = "MA2 Timecode Cut"
a = Analysis(
['gui.py'],
pathex=[],
binaries=[],
datas=[('assets/logo_src.png', 'assets'), ('assets/icon_1024.png', 'assets')],
# miniaudio is imported lazily inside functions, so name it explicitly;
# QtMultimedia + its audio backend are pulled in by the PySide6 hook.
hiddenimports=['miniaudio', 'PySide6.QtMultimedia'],
excludes=['tkinter', 'test', 'unittest', 'pydoc_data'],
noarchive=False,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name=APP,
debug=False,
strip=False,
upx=False,
console=False, # GUI / windowed app (no console window on Windows)
icon='assets/icon.ico', # Windows taskbar / .exe icon
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=False,
name=APP,
)
if sys.platform == 'darwin':
app = BUNDLE(
coll,
name=f"{APP}.app",
icon='assets/icon.icns',
bundle_identifier="studio.oje.ma2tccut",
info_plist={
'NSHighResolutionCapable': True,
'CFBundleShortVersionString': '0.1.1',
'CFBundleVersion': '0.1.1',
},
)