-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_app.py
58 lines (56 loc) · 1.28 KB
/
setup_app.py
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
from setuptools import setup
APP = ['src/main.py']
DATA_FILES = []
OPTIONS = {
'argv_emulation': True,
'plist': {
'LSUIElement': True,
'LSBackgroundOnly': False,
'CFBundleName': "SMB Manager",
'CFBundleDisplayName': "SMB Manager",
'CFBundleIdentifier': "com.smbmanager.app",
'CFBundleVersion': "1.0.0",
'CFBundleShortVersionString': "1.0.0",
'NSHighResolutionCapable': True,
},
'packages': [
'rumps',
'keyring',
'src',
'tkinter',
'keyring.backends', # Add this
'pkg_resources' #
],
'includes': [
'tkinter',
'tkinter.ttk',
'tkinter.messagebox',
'tkinter.filedialog',
'_tkinter',
'json',
'subprocess',
'os',
'sys',
'pathlib',
'logging',
'datetime',
'platform'
],
'excludes': ['PyQt5', 'PyQt6', 'PySide2', 'PySide6', 'wx'],
'resources': ['src'],
'site_packages': True,
'strip': False,
'arch': 'universal2',
'semi_standalone': False
}
setup(
app=APP,
name="SMB Manager",
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
install_requires=[
'rumps',
'keyring',
],
)