Tweak Mac code-signing for 2.8 release.
This commit is contained in:
parent
2382a0600a
commit
0d7f99e261
1 changed files with 10 additions and 4 deletions
|
@ -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}"
|
||||||
|
|
Loading…
Reference in a new issue