29 lines
839 B
Python
Executable File
29 lines
839 B
Python
Executable File
from app.config import Config
|
|
import time
|
|
from setuptools import setup
|
|
APP = ['__main__.py']
|
|
DATA_FILES = []
|
|
OPTIONS = {
|
|
'argv_emulation': True,
|
|
'iconfile': 'app/res/img/FaceUnlock.icns',
|
|
'plist': {
|
|
'CFBundleName': Config.app_name,
|
|
'CFBundleDisplayName': Config.app_name,
|
|
'CFBundleGetInfoString': Config.github_page,
|
|
'CFBundleIdentifier': Config.app_name,
|
|
'CFBundleVersion': Config.version,
|
|
'CFBundleShortVersionString': Config.version,
|
|
'NSHumanReadableCopyright': "Copyright © %d, %s, All Rights Reserved" % (
|
|
time.localtime().tm_year, Config.author),
|
|
'LSUIElement': True,
|
|
}
|
|
}
|
|
|
|
|
|
setup(
|
|
app=APP,
|
|
data_files=DATA_FILES,
|
|
options={'py2app': OPTIONS},
|
|
setup_requires=['py2app', 'rumps', 'numpy', 'requests', 'pyobjc-framework-Quartz'],
|
|
)
|