1
0
Fork 0

Tweak Mac code-signing for 2.8 release.

This commit is contained in:
James Turner 2012-08-14 10:46:00 +01:00
parent 2382a0600a
commit 0d7f99e261

View file

@ -26,7 +26,7 @@ $alutSourcePath='/Library/Frameworks/ALUT.framework'
$svnLibs = ['svn_client', 'svn_wc', 'svn_delta', 'svn_diff', 'svn_ra', $svnLibs = ['svn_client', 'svn_wc', 'svn_delta', 'svn_diff', 'svn_ra',
'svn_ra_local', 'svn_repos', 'svn_fs', 'svn_fs_fs', 'svn_fs_util', 'svn_ra_local', 'svn_repos', 'svn_fs', 'svn_fs_fs', 'svn_fs_util',
'svn_ra_svn', 'svn_subr'] 'svn_ra_svn', 'svn_subr', 'svn_ra_neon']
def fix_install_names(object) def fix_install_names(object)
#puts "fixing install names for #{object}" #puts "fixing install names for #{object}"
@ -109,7 +109,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"
@ -148,8 +147,6 @@ 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("#{macosDir}/FlightGear")
# Info.plist # Info.plist
template = File.read("Info.plist.in") template = File.read("Info.plist.in")
output = ERB.new(template).result(binding) output = ERB.new(template).result(binding)
@ -164,6 +161,15 @@ File.open("#{contents}/Info.plist", 'w') { |f|
puts "Copying base package files into the image" puts "Copying base package files into the image"
`rsync -a fgdata/ #{resourcesDir}/data` `rsync -a fgdata/ #{resourcesDir}/data`
# 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}"