Simplify by using generic Info.plist, builtin substitions

This commit is contained in:
Bradley Bell 2014-12-04 17:27:06 -08:00
parent 876c4522b3
commit 0cc88280ba
2 changed files with 31 additions and 2 deletions

View file

@ -1890,10 +1890,9 @@ class DXXProgram(DXXCommon):
sys.path = syspath
tool_bundle.TOOL_BUNDLE(env)
env.MakeBundle(os.path.join(self.user_settings.builddir, self.PROGRAM_NAME + '.app'), exe_node,
'free.%s-rebirth' % dxxstr, os.path.join(self.srcdir, '%sgl-Info.plist' % dxxstr),
'free.%s-rebirth' % dxxstr, os.path.join(cocoa, 'Info.plist'),
typecode='APPL', creator='DCNT',
icon_file=os.path.join(cocoa, '%s-rebirth.icns' % dxxstr),
subst_dict={'%sgl' % dxxstr : self.target}, # This is required; manually update version for Xcode compatibility
resources=[[os.path.join(self.srcdir, s), s] for s in ['English.lproj/InfoPlist.strings']])
def GenerateHelpText(self):

View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>%BUNDLE_EXECUTABLE%</string>
<key>CFBundleIconFile</key>
<string>%ICONFILE%</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>%LONGVERSION%</string>
<key>CFBundleShortVersionString</key>
<string>%SHORTVERSION%</string>
<key>CSResourcesFileMapped</key>
<false/>
<key>LSPrefersCarbon</key>
<true/>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>