1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00

Switch to gtk-mac-bundler and jhbuild for building OS X app bundle

This commit is contained in:
dmiller
2015-12-09 04:16:50 +00:00
parent 53d41055c7
commit 94d48e7913
13 changed files with 371 additions and 312 deletions

View File

@@ -139,7 +139,7 @@ from zenmapCore.Name import APP_NAME
# http://mail.python.org/pipermail/pythonmac-sig/2004-November/012121.html.
def get_prefix():
frozen = getattr(sys, "frozen", None)
if frozen == "macosx_app":
if frozen == "macosx_app" or "Zenmap.app" in sys.executable:
# A py2app .app bundle.
return os.path.join(dirname(fs_dec(sys.executable)), "..", "Resources")
elif frozen is not None: