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:
parent
a102b680e4
commit
c864b396c6
1 changed files with 9 additions and 2 deletions
|
@ -105,7 +105,6 @@ bins.each do |b|
|
||||||
`cp #{$prefixDir}/bin/#{b} #{outPath}`
|
`cp #{$prefixDir}/bin/#{b} #{outPath}`
|
||||||
fix_install_names(outPath)
|
fix_install_names(outPath)
|
||||||
fix_svn_install_names(outPath)
|
fix_svn_install_names(outPath)
|
||||||
code_sign(outPath)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
puts "copying libraries"
|
puts "copying libraries"
|
||||||
|
@ -149,7 +148,6 @@ if File.exist?("FlightGearOSX")
|
||||||
Dir.chdir "FlightGearOSX" do
|
Dir.chdir "FlightGearOSX" do
|
||||||
`cp FlightGear #{macosDir}`
|
`cp FlightGear #{macosDir}`
|
||||||
`rsync -a *.rb *.lproj *.sh *.tiff #{resourcesDir}`
|
`rsync -a *.rb *.lproj *.sh *.tiff #{resourcesDir}`
|
||||||
code_sign("#{macosDir}/FlightGear")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -158,6 +156,15 @@ if File.exist?("#{$prefixDir}/bin/fgcom-data")
|
||||||
`ditto #{$prefixDir}/bin/fgcom-data #{resourcesDir}/fgcom-data`
|
`ditto #{$prefixDir}/bin/fgcom-data #{resourcesDir}/fgcom-data`
|
||||||
end
|
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"
|
puts "Creating DMG"
|
||||||
|
|
||||||
createArgs = "-format UDBZ -imagekey bzip2-level=9 -quiet -volname #{volName}"
|
createArgs = "-format UDBZ -imagekey bzip2-level=9 -quiet -volname #{volName}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue