1
0
Fork 0

Different Info.plist for official releases.

This commit is contained in:
James Turner 2011-01-18 14:24:31 +00:00
parent dbbe915127
commit b221b59dbc
2 changed files with 36 additions and 5 deletions

29
Info.plist.in Normal file
View file

@ -0,0 +1,29 @@
<?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>CFBundleIconFile</key>
<string>FlightGear.icns</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleGetInfoString</key>
<string>FlightGear nightly build</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleExecutable</key>
<string>FlightGear</string>
<key>CFBundleIdentifier</key>
<string>org.flightgear.FlightGear</string>
<key>CFBundleVersion</key>
<string><%= fgVersion %></string>
<key>CFBundleShortVersionString</key>
<string><%= fgVersion %></string>
<key>LSMinimumSystemVersion</key>
<string>10.5.0</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>

View file

@ -51,11 +51,12 @@ macosDir=contents + "/MacOS"
frameworksDir=contents +"/Frameworks" frameworksDir=contents +"/Frameworks"
resourcesDir=contents+"/Resources" resourcesDir=contents+"/Resources"
osgPluginsDir=contents+"/PlugIns/osgPlugins-#{osgVersion}" osgPluginsDir=contents+"/PlugIns/osgPlugins-#{osgVersion}"
volName="\"FlightGear #{VERSION}\""
VERSION = File.read("#{srcDir}/version").strip
dmgPath = Dir.pwd + "/fg_mac_#{VERSION}.dmg" fgVersion = File.read("#{srcDir}/version").strip
volName="\"FlightGear #{fgVersion}\""
dmgPath = Dir.pwd + "/fg_mac_#{fgVersion}.dmg"
puts "Creating directory structure" puts "Creating directory structure"
`mkdir -p #{macosDir}` `mkdir -p #{macosDir}`
@ -92,10 +93,11 @@ end
`ditto #{$alutSourcePath} #{frameworksDir}/ALUT.framework` `ditto #{$alutSourcePath} #{frameworksDir}/ALUT.framework`
# Macflightgear launcher # Macflightgear launcher
puts "Copying Macflightgear launcher files"
`rsync -a --exclude=\".svn\" macflightgear/* #{resourcesDir}`
# Info.plist # Info.plist
template = File.read("#{srcDir}/package/mac/nightly.plist.in") template = File.read("Info.plist.in")
output = ERB.new(template).result(binding) output = ERB.new(template).result(binding)
File.open("#{contents}/Info.plist", 'w') { |f| File.open("#{contents}/Info.plist", 'w') { |f|