-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
35 lines (29 loc) · 854 Bytes
/
setup.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
from setuptools import setup
import py2app.recipes
APP = ['src/botox.py']
APPNAME = 'Botox'
VERSION = "1.0.1"
DATA_FILES = []
OPTIONS = {
'argv_emulation': True,
'iconfile': 'resources/icon.icns',
'plist':{
'LSUIElement': True,
'CFBundleIdentifier':'com.Rainelz.Botox',
'CFBundleGetInfoString': APPNAME,
'CFBundleVersion' : VERSION,
'CFBundleShortVersionString' : VERSION
},
'packages': ['rumps', 'PySimpleGUI', 'pynput', 'cryptography', 'cffi'],
}
class Script_recipe:
def check(self, cmd, mf):
return {"prescripts": ["resources/prescript.py"]}
py2app.recipes.PREScripts = Script_recipe()
setup(
app=APP,
name=APPNAME,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'], install_requires=['rumps']
)