mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-16 19:45:55 +08:00
Compress the DMG image
This commit is contained in:
parent
8c2ce53724
commit
6e73582e0d
@ -147,11 +147,17 @@ if [[ -e "${KEYCHAIN_FILE}" ]]; then
|
||||
security default-keychain -s "${KEYCHAIN_FILE}"
|
||||
security unlock-keychain -p "${KEYCHAIN_PASSWORD}" "${KEYCHAIN_FILE}"
|
||||
codesign --sign "${KEYCHAIN_IDENTITY}" --deep "$appfolder"
|
||||
else
|
||||
echo "No KEYCHAIN_FILE env variable; skipping codesign"
|
||||
fi
|
||||
|
||||
echo "Creating dmg file...."
|
||||
hdiutil create -fs HFS+ -srcfolder "$appfolder" -volname "$appname" "$dmgfile"
|
||||
|
||||
# Compress the DMG image
|
||||
hdiutil convert "$dmgfile" -format UDZO -imagekey zlib-level=9 -o "$dmgfile-compressed.dmg"
|
||||
mv "$dmgfile-compressed.dmg" "$dmgfile"
|
||||
|
||||
if [[ -e "${KEYCHAIN_FILE}" ]]; then
|
||||
echo "Signing app dmg..."
|
||||
chmod +w $dmgfile
|
||||
|
Loading…
x
Reference in New Issue
Block a user