1
0
Fork 0

Delay code-signing until the bundle is fully assembled.

Apparently code-signing is quite clever, and bundle resources changes invalidate the signature.
This commit is contained in:
James Turner 2012-08-14 10:01:09 +01:00
parent a102b680e4
commit c864b396c6

View file

@ -105,7 +105,6 @@ bins.each do |b|
`cp #{$prefixDir}/bin/#{b} #{outPath}`
fix_install_names(outPath)
fix_svn_install_names(outPath)
code_sign(outPath)
end
puts "copying libraries"
@ -149,7 +148,6 @@ if File.exist?("FlightGearOSX")
Dir.chdir "FlightGearOSX" do
`cp FlightGear #{macosDir}`
`rsync -a *.rb *.lproj *.sh *.tiff #{resourcesDir}`
code_sign("#{macosDir}/FlightGear")
end
end
@ -158,6 +156,15 @@ if File.exist?("#{$prefixDir}/bin/fgcom-data")
`ditto #{$prefixDir}/bin/fgcom-data #{resourcesDir}/fgcom-data`
end
# code sign all executables in MacOS dir. Do this last since reource
# changes will invalidate the signature!
Dir.foreach(macosDir) do |b|
if b == '.' or b == '..' then
next
end
code_sign("#{macosDir}/#{b}")
end
puts "Creating DMG"
createArgs = "-format UDBZ -imagekey bzip2-level=9 -quiet -volname #{volName}"