From 45c9d22929edfb366110184e1634e24fe66fe20e Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Sat, 17 Oct 2026 19:03:26 -0400 Subject: [PATCH] Release: install resvg for the macOS DMG background in CI The 0.11.0 macOS release job failed after notarization with 'resvg not found': the shared release workflow never installed it, and it was only present before via a warm cargo cache. Co-Authored-By: Claude Opus 5.5 --- packaging/macos/package.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packaging/macos/package.sh b/packaging/macos/package.sh index e6427d02..37f81f48 100755 --- a/packaging/macos/package.sh +++ b/packaging/macos/package.sh @@ -131,7 +131,13 @@ ditto "$APP" "$STAGE/EffectCraft.app" ln -s /Applications "$STAGE/Applications" # Finder window layout: background, icon size and positions (packaging/macos/dmg/README.md). # The background is rendered from its SVG (1x + 2x in one HiDPI TIFF), so no bitmap is committed. -command -v resvg >/dev/null || { echo "resvg not found (cargo install resvg --locked --version 0.48.1)" >&2; exit 1; } +# CI (the shared release workflow doesn't install resvg; a warm cargo cache may hold it): install +# the pinned version. Locally, say which version to install. +RESVG_VERSION=0.48.1 +if [ -n "${CI:-}" ] && ! command -v resvg >/dev/null; then + cargo install resvg --locked --version "$RESVG_VERSION" +fi +command -v resvg >/dev/null || { echo "resvg not found (cargo install resvg --locked --version $RESVG_VERSION)" >&2; exit 1; } mkdir -p "$STAGE/.background" resvg --skip-system-fonts -w 660 "$HERE/dmg/background.svg" "$WORK/background.png" resvg --skip-system-fonts -w 1320 "$HERE/dmg/background.svg" "$WORK/background@2x.png"