2016-06-20 10:42:06 +02:00
|
|
|
from setuptools import setup
|
|
|
|
import os
|
2016-12-21 20:55:43 +01:00
|
|
|
from lbrynet import conf
|
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-12-21 20:55:43 +01:00
|
|
|
'CFBundleURLSchemes': [conf.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
|
|
|
)
|