-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathsetup.py
More file actions
34 lines (32 loc) · 974 Bytes
/
Copy pathsetup.py
File metadata and controls
34 lines (32 loc) · 974 Bytes
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
import os
from setuptools import setup
APP = ['rumps_app.py']
DATA_FILES = ['icon.icns', 'iconbw.icns', 'api_show.json']
OPTIONS = {
'argv_emulation': False,
'iconfile': 'icon.icns',
'plist': {
'CFBundleName': 'MackingJAI',
'CFBundleDisplayName': 'MackingJAI',
'CFBundleIdentifier': 'io.github.0ssamaak0.MackingJAI',
'CFBundleVersion': '0.1.0',
'LSUIElement': True,
},
# Basic packages needed
'packages': ['flask', 'rumps'],
# Explicit includes
'includes': ['re', 'threading', 'signal', 'subprocess', 'json', 'jsonify', 'werkzeug'],
# Add this to create a more verbose output
'verbose': True,
# Don't strip debug symbols
'strip': False,
'frameworks': [os.path.join(os.environ.get('CONDA_PREFIX', ''), 'lib', 'libffi.8.dylib')],
}
setup(
app=APP,
name='MackingJAI',
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
py_modules=['server'],
)