lbry-sdk/setup_uri_handler.py

24 lines
607 B
Python
Raw Normal View History

2016-03-03 06:16:51 +01:00
from setuptools import setup
import os
APP = [os.path.join('lbrynet', 'lbrynet_daemon', 'Apps', 'LBRYURIHandler.py')]
DATA_FILES = []
OPTIONS = {'argv_emulation': True,
'packages': ['jsonrpc'],
2016-03-03 06:16:51 +01:00
'plist': {
'LSUIElement': True,
2016-03-03 06:16:51 +01:00
'CFBundleURLTypes': [
{
'CFBundleURLTypes': 'LBRYURIHandler',
'CFBundleURLSchemes': ['lbry']
}
]
}
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)