Mac nightly build packaging tweaks.
This commit is contained in:
parent
7041ed9078
commit
5465895278
1 changed files with 14 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/ruby
|
#!/usr/bin/ruby
|
||||||
|
|
||||||
require 'ERB'
|
require 'plist'
|
||||||
|
|
||||||
$osgLibs = ['osgFX', 'osgParticle', 'osg', 'osgGA', 'osgText', 'osgUtil', 'osgSim', 'osgViewer', 'osgDB']
|
$osgLibs = ['osgFX', 'osgParticle', 'osg', 'osgGA', 'osgText', 'osgUtil', 'osgSim', 'osgViewer', 'osgDB']
|
||||||
$osgPlugins = ['ac', 'osg', 'freetype', 'imageio', 'rgb', 'txf', 'mdl', '3ds', 'dds']
|
$osgPlugins = ['ac', 'osg', 'freetype', 'imageio', 'rgb', 'txf', 'mdl', '3ds', 'dds']
|
||||||
|
@ -21,7 +21,7 @@ puts "Code signing identity is #{$codeSignIdentity}"
|
||||||
puts "osgVersion=#{osgVersion}, so-number=#{$osgSoVersion}"
|
puts "osgVersion=#{osgVersion}, so-number=#{$osgSoVersion}"
|
||||||
|
|
||||||
def fix_install_names(object)
|
def fix_install_names(object)
|
||||||
#puts "fixing install names for #{object}"
|
puts "fixing install names for #{object}"
|
||||||
|
|
||||||
$osgLibs.each do |l|
|
$osgLibs.each do |l|
|
||||||
oldName = "lib#{l}.#{$osgSoVersion}.dylib"
|
oldName = "lib#{l}.#{$osgSoVersion}.dylib"
|
||||||
|
@ -68,8 +68,11 @@ puts "Creating directory structure"
|
||||||
`mkdir -p #{resourcesDir}`
|
`mkdir -p #{resourcesDir}`
|
||||||
`mkdir -p #{osgPluginsDir}`
|
`mkdir -p #{osgPluginsDir}`
|
||||||
|
|
||||||
puts "Copying binaries"
|
# fix install names on the primary executable
|
||||||
bins = ['fgfs', 'fgjs', 'fgcom']
|
fix_install_names("#{macosDir}/fgfs")
|
||||||
|
|
||||||
|
puts "Copying auxilliary binaries"
|
||||||
|
bins = ['fgjs', 'fgcom']
|
||||||
bins.each do |b|
|
bins.each do |b|
|
||||||
if !File.exist?("#{$prefixDir}/bin/#{b}")
|
if !File.exist?("#{$prefixDir}/bin/#{b}")
|
||||||
next
|
next
|
||||||
|
@ -108,6 +111,12 @@ if File.exist?("FlightGearOSX")
|
||||||
`cp FlightGear #{macosDir}`
|
`cp FlightGear #{macosDir}`
|
||||||
`rsync -a *.rb *.lproj *.sh *.tiff #{resourcesDir}`
|
`rsync -a *.rb *.lproj *.sh *.tiff #{resourcesDir}`
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# change CFBundleExecutable in to the Info.plist
|
||||||
|
puts "Adjusting CFBundle executable - needs Ruby plist gem installed"
|
||||||
|
plist = Plist::parse_xml("#{contents}/Info.plist")
|
||||||
|
plist["CFBundleExecutable"] = "FlightGear"
|
||||||
|
plist.save_plist("#{contents}/Info.plist")
|
||||||
end
|
end
|
||||||
|
|
||||||
if File.exist?("#{$prefixDir}/share/flightgear")
|
if File.exist?("#{$prefixDir}/share/flightgear")
|
||||||
|
|
Loading…
Reference in a new issue