From 11d97848200b6de959a1692989763644dae8e76f Mon Sep 17 00:00:00 2001 From: rgaudin Date: Tue, 6 May 2014 08:16:18 +0000 Subject: [PATCH] changed osx bundle/.app layout to reflect XR29/tbird --- src/macosx/Info.plist | 32 ++++++++++++++++++++++++++------ src/macosx/InfoPlist.strings | 3 +++ src/macosx/PkgInfo | 1 + src/macosx/cleanup_rpath.py | 9 ++++++--- 4 files changed, 36 insertions(+), 9 deletions(-) create mode 100644 src/macosx/InfoPlist.strings create mode 100644 src/macosx/PkgInfo diff --git a/src/macosx/Info.plist b/src/macosx/Info.plist index 6be9e38..17e5547 100644 --- a/src/macosx/Info.plist +++ b/src/macosx/Info.plist @@ -3,7 +3,9 @@ CFBundleExecutable - xulrunner + kiwix + CFBundleDisplayName + Kiwix CFBundleGetInfoString 0.9 rc3 CFBundleIconFile @@ -11,16 +13,18 @@ CFBundleIdentifier org.kiwix.kiwix CFBundleInfoDictionaryVersion - 0.1 + 6.0 CFBundleName Kiwix CFBundlePackageType APPL CFBundleShortVersionString - 0.9 - CFBundleSignature - ???? + 0.9 rc3 CFBundleURLTypes + CFBundleDevelopmentRegion + English + CFBundleSignature + KIWI CFBundleURLIconFile @@ -34,7 +38,7 @@ CFBundleVersion - 1.0 + 1.0.1 CFBundleDocumentTypes @@ -53,5 +57,21 @@ Viewer + LSApplicationCategoryType + public.app-category.productivity + LSMinimumSystemVersion + 10.6.0 + LSMinimumSystemVersionByArchitecture + + i386 + 10.6.0 + x86_64 + 10.6.0 + + NSSupportsAutomaticGraphicsSwitching + + NSPrincipalClass + GeckoNSApplication + UTExportedTypeDeclarations diff --git a/src/macosx/InfoPlist.strings b/src/macosx/InfoPlist.strings new file mode 100644 index 0000000..2375798 --- /dev/null +++ b/src/macosx/InfoPlist.strings @@ -0,0 +1,3 @@ + +CFBundleName = "Kiwix"; +NSHumanReadableCopyright = "Copyright © 2006-2014 Contributors."; diff --git a/src/macosx/PkgInfo b/src/macosx/PkgInfo new file mode 100644 index 0000000..255ca26 --- /dev/null +++ b/src/macosx/PkgInfo @@ -0,0 +1 @@ +APPLMOZM \ No newline at end of file diff --git a/src/macosx/cleanup_rpath.py b/src/macosx/cleanup_rpath.py index 5c167eb..477a810 100755 --- a/src/macosx/cleanup_rpath.py +++ b/src/macosx/cleanup_rpath.py @@ -63,7 +63,7 @@ libname = u'lib%s%s.0.dylib' % (name[0].upper(), name[1:]) # change ID if component to match new name/path if is_component: - os.system('install_name_tool -id %s %s' % (basename, component)) + os.system('install_name_tool -id %s %s' % (basename, component)) # run otool to get a list of deps. otool = subprocess.Popen(['otool', '-L', component], stdout=subprocess.PIPE) @@ -73,6 +73,7 @@ for line in otool_out.split('\n'): if ('executable_path' in line or 'libSystem' in line or 'libstdc++' in line + or 'libgcc' in line or ':' in line or not len(line) or 'aria2c' in basename): @@ -90,9 +91,11 @@ for line in otool_out.split('\n'): if match: print("match: %s" % match.groups()[0]) if is_component: - newpath = u'@executable_path/../Frameworks/lib%s.dylib' % match.groups()[0] + # newpath = u'@executable_path/../Frameworks/lib%s.dylib' % match.groups()[0] + newpath = u'@executable_path/lib%s.dylib' % match.groups()[0] elif is_binary: - newpath = u'@executable_path/../../Frameworks/lib%s.dylib' % match.groups()[0] + # newpath = u'@executable_path/../../Frameworks/lib%s.dylib' % match.groups()[0] + newpath = u'@executable_path/../lib%s.dylib' % match.groups()[0] else: newpath = u'@loader_path/lib%s.dylib' % match.groups()[0]