-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmailsweep.spec
More file actions
77 lines (71 loc) · 1.77 KB
/
mailsweep.spec
File metadata and controls
77 lines (71 loc) · 1.77 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
# -*- mode: python ; coding: utf-8 -*-
"""PyInstaller spec for MailSweep (onefile mode, .app bundle on macOS)."""
import sys
import certifi
a = Analysis(
['mailsweep/main.py'],
pathex=['.'],
binaries=[],
datas=[
(certifi.where(), 'certifi'),
('mailsweep/resources/icon.svg', 'mailsweep/resources'),
('mailsweep/resources/icon.png', 'mailsweep/resources'),
],
hiddenimports=[
'imapclient',
'squarify',
'keyring',
'keyring.backends.SecretService',
'keyring.backends.fail',
'google.auth',
'google.auth.transport.requests',
'google.oauth2.credentials',
'google_auth_oauthlib.flow',
'msal',
'chardet',
'certifi',
'PyQt6.QtWidgets',
'PyQt6.QtCore',
'PyQt6.QtGui',
],
hookspath=[],
hooksconfig={},
runtime_hooks=['rthook_certifi.py'],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data)
_icon_exe = (
'mailsweep/resources/icon.ico' if sys.platform == 'win32'
else 'mailsweep/resources/icon.png'
)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='MailSweep',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=_icon_exe,
)
if sys.platform == 'darwin':
app = BUNDLE(
exe,
name='MailSweep.app',
bundle_identifier='com.jitrc.mailsweep',
icon='mailsweep/resources/icon.icns',
info_plist={
'NSHighResolutionCapable': True,
'NSRequiresAquaSystemAppearance': False,
'CFBundleShortVersionString': '0.5.9',
},
)