lbry-sdk/packaging/osx/lbry-osx-app/setup_uri_handler.py

26 lines
703 B
Python
Raw Normal View History

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