`cp #{$prefixDir}/bin/#{b} #{outPath}`
fix_install_names(outPath)
fix_svn_install_names(outPath)
- code_sign(outPath)
end
puts "copying libraries"
Dir.chdir "FlightGearOSX" do
`cp FlightGear #{macosDir}`
`rsync -a *.rb *.lproj *.sh *.tiff #{resourcesDir}`
- code_sign("#{macosDir}/FlightGear")
end
end
`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}"