From 444d6be8adcf81023580852b251747bf20cf232d Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 8 Mar 2015 01:01:03 +0000 Subject: [PATCH] Mac nightly creates full and lite DMGs. --- hudson_mac_package_release.rb | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/hudson_mac_package_release.rb b/hudson_mac_package_release.rb index e4f0dc1..1d55700 100755 --- a/hudson_mac_package_release.rb +++ b/hudson_mac_package_release.rb @@ -69,6 +69,7 @@ fgVersion = File.read("#{srcDir}/version").strip volName="\"FlightGear #{fgVersion}\"" dmgPath = Dir.pwd + "/output/FlightGear-#{fgVersion}-nightly.dmg" +dmgFullPath = Dir.pwd + "/output/FlightGear-#{fgVersion}-nightly-full.dmg" puts "Creating directory structure" `mkdir -p #{macosDir}` @@ -128,8 +129,7 @@ File.open("#{contents}/Info.plist", 'w') { |f| `mv fgdata/Docs/FGShortRef.pdf "#{dmgDir}/Quick Reference.pdf"` `mv fgdata/Docs/getstart.pdf "#{dmgDir}/Getting Started.pdf"` -puts "Copying base package files into the image" -`rsync -a fgdata/ #{resourcesDir}/data` +# create the 'lite' DMG without the base files # code sign the entire bundle once complete - v2 code-signing puts "Signing #{bundle}" @@ -141,3 +141,16 @@ createArgs = "-format UDBZ -imagekey bzip2-level=9 -quiet -volname #{volName}" `rm #{dmgPath}` `hdiutil create -srcfolder #{dmgDir} #{createArgs} #{dmgPath}` + + +puts "Creatign full image with data" + +puts "Copying base package files into the image" +`rsync -a fgdata/ #{resourcesDir}/data` + +# re-sign the entire bundle +puts "Re-signing full #{bundle}" +`codesign --force --deep -s "#{$codeSignIdentity}" #{bundle}` + +`rm #{dmgFullPath}` +`hdiutil create -srcfolder #{dmgDir} #{createArgs} #{dmgFullPath}`