From ed0a92c735e658f8783cc83fe0beb37c42377ff4 Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 2 Mar 2025 17:10:13 +0000 Subject: [PATCH] desktopToDarwinBundle: use ARGB format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Very belatedly, since we now only support macOS ≥ 11.3. Co-authored-by: Karolis Stasaitis --- pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh b/pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh index 4fbef4baa512..6790754f740a 100644 --- a/pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh +++ b/pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh @@ -115,15 +115,15 @@ convertIconTheme() { } # macOS does not correctly display 16x and 32x png icons on app bundles - # they need to be converted to rgb+mask (argb is supported only from macOS 11) + # they need to be converted to argb function convertIfUnsupportedIcon() { local -r in=$1 local -r iconSize=$2 local -r scale=$3 - local -r out=${in%.png}.rgb + local -r out=${in%.png}.argb if [[ ($scale -eq 1) && ($iconSize -eq 32 || $iconSize -eq 16) ]]; then - echo "desktopToDarwinBundle: converting ${iconSize}x icon to rgb" >&2 + echo "desktopToDarwinBundle: converting ${iconSize}x icon to argb" >&2 icnsutil convert "$out" "$in" rm "$in" fi