1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 00:07:14 +03:00

Build a standalone app on MacOS

This commit is contained in:
Jonathan Harris 2019-09-29 19:00:30 +01:00 committed by Athanasius
parent c5daf1d563
commit bddbb913a5

View File

@ -26,11 +26,6 @@ if sys.platform=='win32':
import py2exe
dist_dir = 'dist.win32'
elif sys.platform=='darwin':
if sys.executable.startswith('/usr'):
# SIP doesn't allow symlinks to /usr/bin/...
import subprocess
subprocess.call(['/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python'] + sys.argv, stdout=sys.stdout, stderr=sys.stderr)
sys.exit(0)
dist_dir = 'dist.macosx'
else:
assert False, 'Unsupported platform %s' % sys.platform
@ -77,7 +72,6 @@ if sys.platform=='darwin':
'iconfile': '%s.icns' % APPNAME,
'include_plugins': [('plugins', x) for x in PLUGINS],
'resources': [ 'commodity.csv', 'rare_commodity.csv', 'snd_good.wav', 'snd_bad.wav', 'modules.p', 'ships.p', 'stations.p', 'systems.p'],
'semi_standalone': True,
'site_packages': False,
'plist': {
'CFBundleName': APPLONGNAME,