Tweaks to release DMG creation on Mac.
This commit is contained in:
parent
802e9dbc28
commit
bc58ece69a
@ -130,17 +130,17 @@ File.open("#{contents}/Info.plist", 'w') { |f|
|
|||||||
`cp fgdata/Docs/FGShortRef.pdf "#{dmgDir}/Quick Reference.pdf"`
|
`cp fgdata/Docs/FGShortRef.pdf "#{dmgDir}/Quick Reference.pdf"`
|
||||||
`cp fgdata/Docs/getstart.pdf "#{dmgDir}/Getting Started.pdf"`
|
`cp fgdata/Docs/getstart.pdf "#{dmgDir}/Getting Started.pdf"`
|
||||||
|
|
||||||
|
createArgs = "-format UDBZ -imagekey bzip2-level=9 -quiet -volname #{volName}"
|
||||||
|
|
||||||
|
|
||||||
|
if !$isRelease
|
||||||
# create the 'lite' DMG without the base files
|
# create the 'lite' DMG without the base files
|
||||||
|
|
||||||
# code sign the entire bundle once complete - v2 code-signing
|
# code sign the entire bundle once complete - v2 code-signing
|
||||||
puts "Signing #{bundle}"
|
puts "Signing #{bundle}"
|
||||||
`codesign --deep -s "#{$codeSignIdentity}" #{bundle}`
|
`codesign --deep -s "#{$codeSignIdentity}" #{bundle}`
|
||||||
|
|
||||||
if !$isRelease
|
|
||||||
puts "Creating DMG"
|
puts "Creating DMG"
|
||||||
|
|
||||||
createArgs = "-format UDBZ -imagekey bzip2-level=9 -quiet -volname #{volName}"
|
|
||||||
|
|
||||||
`rm #{dmgPath}`
|
`rm #{dmgPath}`
|
||||||
`hdiutil create -srcfolder #{dmgDir} #{createArgs} #{dmgPath}`
|
`hdiutil create -srcfolder #{dmgDir} #{createArgs} #{dmgPath}`
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user