2016-06-20 10:42:06 +02:00
|
|
|
from setuptools import setup
|
|
|
|
import os
|
2016-10-27 21:57:02 +02:00
|
|
|
from lbrynet.conf import settings
|
2016-06-20 10:42:06 +02:00
|
|
|
|
|
|
|
APP = [os.path.join('lbry_uri_handler', 'LBRYURIHandler.py')]
|
|
|
|
DATA_FILES = []
|
|
|
|
OPTIONS = {'argv_emulation': True,
|
|
|
|
'packages': ['jsonrpc'],
|
|
|
|
'plist': {
|
|
|
|
'LSUIElement': True,
|
|
|
|
'CFBundleIdentifier': 'io.lbry.LBRYURIHandler',
|
|
|
|
'CFBundleURLTypes': [
|
|
|
|
{
|
|
|
|
'CFBundleURLTypes': 'LBRYURIHandler',
|
2016-10-27 21:57:02 +02:00
|
|
|
'CFBundleURLSchemes': [settings.PROTOCOL_PREFIX]
|
2016-06-20 10:42:06 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
setup(
|
|
|
|
app=APP,
|
|
|
|
data_files=DATA_FILES,
|
|
|
|
options={'py2app': OPTIONS},
|
|
|
|
setup_requires=['py2app'],
|
2016-10-27 21:57:02 +02:00
|
|
|
)
|