changed osx bundle/.app layout to reflect XR29/tbird

pull/9/head
rgaudin 12 years ago
parent fa16bdc7b3
commit 11d9784820

@ -3,7 +3,9 @@
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>xulrunner</string> <string>kiwix</string>
<key>CFBundleDisplayName</key>
<string>Kiwix</string>
<key>CFBundleGetInfoString</key> <key>CFBundleGetInfoString</key>
<string>0.9 rc3</string> <string>0.9 rc3</string>
<key>CFBundleIconFile</key> <key>CFBundleIconFile</key>
@ -11,16 +13,18 @@
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
<string>org.kiwix.kiwix</string> <string>org.kiwix.kiwix</string>
<key>CFBundleInfoDictionaryVersion</key> <key>CFBundleInfoDictionaryVersion</key>
<string>0.1</string> <string>6.0</string>
<key>CFBundleName</key> <key>CFBundleName</key>
<string>Kiwix</string> <string>Kiwix</string>
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>0.9</string> <string>0.9 rc3</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleURLTypes</key> <key>CFBundleURLTypes</key>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleSignature</key>
<string>KIWI</string>
<array> <array>
<dict> <dict>
<key>CFBundleURLIconFile</key> <key>CFBundleURLIconFile</key>
@ -34,7 +38,7 @@
</dict> </dict>
</array> </array>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>1.0</string> <string>1.0.1</string>
<key>CFBundleDocumentTypes</key> <key>CFBundleDocumentTypes</key>
<array> <array>
<dict> <dict>
@ -53,5 +57,21 @@
<string>Viewer</string> <string>Viewer</string>
</dict> </dict>
</array> </array>
<key>LSApplicationCategoryType</key>
<string>public.app-category.productivity</string>
<key>LSMinimumSystemVersion</key>
<string>10.6.0</string>
<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>i386</key>
<string>10.6.0</string>
<key>x86_64</key>
<string>10.6.0</string>
</dict>
<key>NSSupportsAutomaticGraphicsSwitching</key>
<true/>
<key>NSPrincipalClass</key>
<string>GeckoNSApplication</string>
<key>UTExportedTypeDeclarations</key>
</dict> </dict>
</plist> </plist>

@ -0,0 +1,3 @@
CFBundleName = "Kiwix";
NSHumanReadableCopyright = "Copyright © 2006-2014 Contributors.";

@ -0,0 +1 @@
APPLMOZM

@ -73,6 +73,7 @@ for line in otool_out.split('\n'):
if ('executable_path' in line if ('executable_path' in line
or 'libSystem' in line or 'libSystem' in line
or 'libstdc++' in line or 'libstdc++' in line
or 'libgcc' in line
or ':' in line or ':' in line
or not len(line) or not len(line)
or 'aria2c' in basename): or 'aria2c' in basename):
@ -90,9 +91,11 @@ for line in otool_out.split('\n'):
if match: if match:
print("match: %s" % match.groups()[0]) print("match: %s" % match.groups()[0])
if is_component: 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: 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: else:
newpath = u'@loader_path/lib%s.dylib' % match.groups()[0] newpath = u'@loader_path/lib%s.dylib' % match.groups()[0]

Loading…
Cancel
Save