Identify OS X application bundle with SVN version number.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5557 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
a909d0cb76
commit
220c3ae829
|
@ -1,6 +1,7 @@
|
||||||
# -*- python -*-
|
# -*- python -*-
|
||||||
|
|
||||||
Import('env')
|
Import('env')
|
||||||
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
wxenv = env.Clone()
|
wxenv = env.Clone()
|
||||||
|
@ -78,25 +79,19 @@ if sys.platform == 'darwin':
|
||||||
exeGUI = env['binary_dir'] + 'Dolphin.app/Contents/MacOS/Dolphin'
|
exeGUI = env['binary_dir'] + 'Dolphin.app/Contents/MacOS/Dolphin'
|
||||||
exeNoGUI = env['binary_dir'] + 'DolphinNoGUI'
|
exeNoGUI = env['binary_dir'] + 'DolphinNoGUI'
|
||||||
|
|
||||||
icon = 'Dolphin'
|
|
||||||
version = 'svn'
|
|
||||||
wxenv['FRAMEWORKS'] = ['Cocoa', 'CoreFoundation', 'System']
|
wxenv['FRAMEWORKS'] = ['Cocoa', 'CoreFoundation', 'System']
|
||||||
wxenv.Plist(
|
wxenv.Plist(
|
||||||
env['binary_dir'] + 'Dolphin.app/Contents/Info.plist',
|
env['binary_dir'] + 'Dolphin.app/Contents/Info.plist',
|
||||||
Value(dict(
|
Value(dict(
|
||||||
CFAppleHelpAnchor = 'index',
|
|
||||||
CFBundleExecutable = 'Dolphin',
|
CFBundleExecutable = 'Dolphin',
|
||||||
CFBundleGetInfoHTML = 'Dolphin ' + version,
|
CFBundleIconFile = 'Dolphin.icns',
|
||||||
CFBundleIconFile = icon,
|
|
||||||
CFBundleIdentifier = 'com.dolphin-emu.dolphin',
|
CFBundleIdentifier = 'com.dolphin-emu.dolphin',
|
||||||
CFBundleName = 'Dolphin',
|
CFBundleName = 'Dolphin',
|
||||||
CFBundlePackageType = 'APPL',
|
CFBundlePackageType = 'APPL',
|
||||||
CFBundleShortVersionString = version,
|
CFBundleShortVersionString =
|
||||||
CFBundleSignature = 'dlfn',
|
os.popen('svnversion -n ' + Dir('#').abspath).read(),
|
||||||
CFBundleVersion = version,
|
CFBundleVersion = '2.0',
|
||||||
LSRequiresCarbon = True,
|
LSRequiresCarbon = True,
|
||||||
NSPrefPaneIconFile = icon,
|
|
||||||
NSPrefPaneIconLabel = 'Dolphin',
|
|
||||||
))
|
))
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue