Repository navigation
Expand file tree
/
Copy pathminicountant.spec
More file actions
96 lines (90 loc) · 2.52 KB
/
Copy pathminicountant.spec
File metadata and controls
96 lines (90 loc) · 2.52 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import sys
from PyInstaller.utils.hooks import collect_submodules, collect_data_files
block_cipher = None
webview_datas = collect_data_files('webview')
webview_hidden = collect_submodules('webview')
a = Analysis(
['desktop.py'],
pathex=['.'],
binaries=[],
datas=[
('static', 'static'),
('templates', 'templates'),
*webview_datas,
],
hiddenimports=[
*webview_hidden,
# uvicorn internals not always auto-detected by PyInstaller
'uvicorn.logging',
'uvicorn.loops',
'uvicorn.loops.auto',
'uvicorn.protocols',
'uvicorn.protocols.http',
'uvicorn.protocols.http.auto',
'uvicorn.protocols.websockets',
'uvicorn.protocols.websockets.auto',
'uvicorn.lifespan',
'uvicorn.lifespan.on',
# all routers (dynamic imports not always detected)
'routers.accounts',
'routers.budget',
'routers.dashboard',
'routers.goals',
'routers.ingest',
'routers.loans',
'routers.recurring',
'routers.rsus',
'routers.simplefin',
'routers.transactions',
],
hookspath=[],
runtime_hooks=[],
excludes=[],
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
# ── macOS: .app bundle (standard drag-to-Applications distribution) ──────────
if sys.platform == 'darwin':
exe = EXE(
pyz, a.scripts, [],
exclude_binaries=True,
name='minicountant',
debug=False,
strip=False,
upx=False,
console=False,
)
coll = COLLECT(
exe, a.binaries, a.zipfiles, a.datas,
strip=False,
upx=False,
name='minicountant',
)
app = BUNDLE(
coll,
name='Minicountant.app',
bundle_identifier='com.minicountant.app',
info_plist={
'NSHighResolutionCapable': True,
'NSRequiresAquaSystemAppearance': False,
'CFBundleShortVersionString': '1.0.0',
'CFBundleDisplayName': 'Minicountant',
},
)
# ── Linux / Windows: single-file executable ──────────────────────────────────
else:
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='minicountant',
debug=False,
strip=False,
upx=True,
console=False,
bootloader_ignore_signals=False,
)