Different Info.plist for official releases.
This commit is contained in:
parent
dbbe915127
commit
b221b59dbc
2 changed files with 36 additions and 5 deletions
29
Info.plist.in
Normal file
29
Info.plist.in
Normal 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>
|
||||||
|
|
|
@ -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|
|
||||||
|
|
Loading…
Reference in a new issue