Merge branch 'next' of http://git.gitorious.org/fg/flightgear into next
This commit is contained in:
commit
13ba9209e9
4 changed files with 27 additions and 3 deletions
|
@ -53,9 +53,9 @@ resourcesDir=contents+"/Resources"
|
||||||
osgPluginsDir=contents+"/PlugIns/osgPlugins-#{osgVersion}"
|
osgPluginsDir=contents+"/PlugIns/osgPlugins-#{osgVersion}"
|
||||||
volName="\"FlightGear Nightly Build\""
|
volName="\"FlightGear Nightly Build\""
|
||||||
|
|
||||||
VERSION = File.read("#{srcDir}/version").strip
|
fgVersion = File.read("#{srcDir}/version").strip
|
||||||
|
|
||||||
dmgPath = Dir.pwd + "/fg_mac_nightly_#{VERSION}.dmg"
|
dmgPath = Dir.pwd + "/fg_mac_nightly_#{fgVersion}.dmg"
|
||||||
|
|
||||||
puts "Creating directory structure"
|
puts "Creating directory structure"
|
||||||
`mkdir -p #{macosDir}`
|
`mkdir -p #{macosDir}`
|
||||||
|
@ -103,6 +103,14 @@ File.open("#{contents}/Info.plist", 'w') { |f|
|
||||||
`cp #{srcDir}/package/mac/FlightGear.icns #{resourcesDir}/FlightGear.icns`
|
`cp #{srcDir}/package/mac/FlightGear.icns #{resourcesDir}/FlightGear.icns`
|
||||||
`cp #{srcDir}/COPYING #{dmgDir}`
|
`cp #{srcDir}/COPYING #{dmgDir}`
|
||||||
|
|
||||||
|
# Macflightgear launcher
|
||||||
|
puts "Copying Macflightgear launcher files"
|
||||||
|
|
||||||
|
Dir.chdir "macflightgear" do
|
||||||
|
`cp FlightGear #{macosDir}`
|
||||||
|
`rsync -a --exclude=\".svn\" *.rb *.lproj *.sh *.tiff #{resourcesDir}`
|
||||||
|
end
|
||||||
|
|
||||||
puts "Creating DMG"
|
puts "Creating DMG"
|
||||||
|
|
||||||
createArgs = "-format UDBZ -imagekey bzip2-level=9 -quiet -volname #{volName}"
|
createArgs = "-format UDBZ -imagekey bzip2-level=9 -quiet -volname #{volName}"
|
||||||
|
|
15
package/mac/hudson_mac_build_launcher.sh
Executable file
15
package/mac/hudson_mac_build_launcher.sh
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SDK_PATH="/Developer/SDKs/MacOSX10.5.sdk"
|
||||||
|
OSX_TARGET="10.5"
|
||||||
|
|
||||||
|
svn co https://macflightgear.svn.sourceforge.net/svnroot/macflightgear/trunk/FlightGearOSX macflightgear
|
||||||
|
|
||||||
|
pushd macflightgear
|
||||||
|
|
||||||
|
# compile the stub executable
|
||||||
|
gcc -o FlightGear -mmacosx-version-min=$OSX_TARGET -isysroot $SDK_PATH -arch i386 main.m \
|
||||||
|
-framework Cocoa -framework RubyCocoa -framework Foundation -framework AppKit
|
||||||
|
|
||||||
|
popd
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>org.flightgear.FlightGear</string>
|
<string>org.flightgear.FlightGear</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string><%= VERSION %></string>
|
<string><%= fgVersion %></string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>unstable nightly build</string>
|
<string>unstable nightly build</string>
|
||||||
<key>LSMinimumSystemVersion</key>
|
<key>LSMinimumSystemVersion</key>
|
||||||
|
|
|
@ -374,6 +374,7 @@ void MetarProperties::set_metar( const char * metar )
|
||||||
-9999.0 :
|
-9999.0 :
|
||||||
metarClouds[i].getAltitude_ft() + _station_elevation;
|
metarClouds[i].getAltitude_ft() + _station_elevation;
|
||||||
|
|
||||||
|
layerNode->setDoubleValue( "alpha", 1.0 );
|
||||||
layerNode->setStringValue( "coverage", coverage_string[coverage] );
|
layerNode->setStringValue( "coverage", coverage_string[coverage] );
|
||||||
layerNode->setDoubleValue( "coverage-type", SGCloudLayer::getCoverageType(coverage_string[coverage]) );
|
layerNode->setDoubleValue( "coverage-type", SGCloudLayer::getCoverageType(coverage_string[coverage]) );
|
||||||
layerNode->setDoubleValue( "elevation-ft", elevation );
|
layerNode->setDoubleValue( "elevation-ft", elevation );
|
||||||
|
|
Loading…
Add table
Reference in a new issue