-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
95 lines (88 loc) · 2.61 KB
/
setup.py
File metadata and controls
95 lines (88 loc) · 2.61 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
from setuptools import setup
APP = ['tk_main_menue.py']
DATA_FILES = [
('', ['LICENSE.txt', 'README.md', 'hilfe.html', 'screenshot.png']),
('assets', ['assets/icon_small.png']),
]
OPTIONS = {
'includes': [
'requests',
'charset_normalizer',
'tkinter',
'ttkbootstrap',
'PIL.Image',
'PIL.ImageTk',
'jamfscripts',
'markdown.extensions.extra',
'markdown.extensions.nl2br',
'markdown.extensions.abbr',
'markdown.extensions.attr_list',
'markdown.extensions.def_list',
'markdown.extensions.fenced_code',
'markdown.extensions.footnotes',
'markdown.extensions.tables',
'markdown.extensions.smart_strong',
'markdown.extensions.admonition',
'markdown.extensions.md_in_html' ,
'markdown.extensions.sane_lists'
],
'packages': ['cryptography', 'cffi', 'charset_normalizer'],
'plist': {
'CFBundleName': 'Classload',
'CFBundleDisplayName': 'Classload',
'CFBundleIdentifier': 'com.example.classload',
'CFBundleVersion': '1.0',
'CFBundleShortVersionString': '1.0',
'NSHighResolutionCapable': True,
'CFBundleIconFile': 'icon',
'LSUIElement': False # <-- Sichtbarkeit & Dock-Integration
},
'resources': ['LICENSE.txt', 'README.md', 'screenshot.png', 'icon.icns'],
'iconfile': 'icon.icns',
'verbose': 1,
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
"""
from setuptools import setup
APP = ['tk_main_menue.py']
DATA_FILES = [
('', ['LICENSE.txt', 'README.md']),
('assets', ['assets/icon_small.png']),
]
OPTIONS = {
'argv_emulation': True, # Terminalfenster zeigt Fehler
# 'iconfile': 'icon.icns', # Nur aktivieren, wenn icon.icns existiert
'includes': [
'requests',
'charset_normalizer',
'tkinter',
'ttkbootstrap',
'PIL.Image',
'PIL.ImageTk',
'jamfscripts'
],
'packages': ['cryptography', 'cffi', 'charset_normalizer'],
'plist': {
'CFBundleName': 'Classload',
'CFBundleDisplayName': 'Classload',
'CFBundleIdentifier': 'com.example.classload',
'CFBundleVersion': '1.0',
'CFBundleShortVersionString': '1.0',
'NSHighResolutionCapable': True,
'CFBundleIconFile': 'icon', # nur wenn icon.icns da ist
},
'resources': ['LICENSE.txt', 'screenshot.png', 'hilfe.html', 'README.md'],
'verbose': 1,
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)
"""