lbry-sdk/setup_uri_handler.py

25 lines
670 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-25 01:46:24 +01:00
'CFBundleIdentifier': 'io.lbry.LBRYURIHandler',
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'],
)