mirror of
https://github.com/harry7557558/spirula-studio.git
synced 2026-10-02 02:44:54 +08:00
debug macOS packaging failure
This commit is contained in:
+11
-2
@@ -145,11 +145,20 @@ echo " signed ($IDENTITY) and verified"
|
||||
if [ "$MAKE_DMG" = 1 ]; then
|
||||
DMG="$OUT_DIR/Spirula Studio.dmg"
|
||||
STAGE=$(mktemp -d)
|
||||
trap "rm -rf '$STAGE'" EXIT
|
||||
|
||||
cp -R "$APP" "$STAGE/"
|
||||
ln -s /Applications "$STAGE/Applications"
|
||||
rm -f "$DMG"
|
||||
hdiutil create -quiet -volname "Spirula Studio" -srcfolder "$STAGE" \
|
||||
-ov -format UDZO "$DMG"
|
||||
|
||||
if ! hdiutil create -volname "Spirula Studio" -srcfolder "$STAGE" \
|
||||
-ov -format UDZO "$DMG"; then
|
||||
echo "package_macos.sh: hdiutil create failed" >&2
|
||||
echo " Check disk space: $(df -h "$OUT_DIR" | tail -1)" >&2
|
||||
echo " Staging dir: $(du -sh "$STAGE")" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
rm -rf "$STAGE"
|
||||
echo "==> $DMG ($(du -h "$DMG" | cut -f1 | tr -d ' '))"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user