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:
parent
c5daf1d563
commit
bddbb913a5
6
setup.py
6
setup.py
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user