2016-06-20 10:42:06 +02:00
|
|
|
from setuptools import setup
|
|
|
|
import os
|
2016-10-15 05:01:15 +02:00
|
|
|
from lbrynet.conf import PROTOCOL_PREFIX
|
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-15 05:01:15 +02:00
|
|
|
'CFBundleURLSchemes': [PROTOCOL_PREFIX]
|
2016-06-20 10:42:06 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
setup(
|
|
|
|
app=APP,
|
|
|
|
data_files=DATA_FILES,
|
|
|
|
options={'py2app': OPTIONS},
|
|
|
|
setup_requires=['py2app'],
|
|
|
|
)
|