Skip to content

Commit 674c697

Browse files
authored
desktopToDarwinBundle: use ARGB format (#386434)
2 parents ecb2fc1 + ed0a92c commit 674c697

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,15 @@ convertIconTheme() {
115115
}
116116

117117
# macOS does not correctly display 16x and 32x png icons on app bundles
118-
# they need to be converted to rgb+mask (argb is supported only from macOS 11)
118+
# they need to be converted to argb
119119
function convertIfUnsupportedIcon() {
120120
local -r in=$1
121121
local -r iconSize=$2
122122
local -r scale=$3
123-
local -r out=${in%.png}.rgb
123+
local -r out=${in%.png}.argb
124124

125125
if [[ ($scale -eq 1) && ($iconSize -eq 32 || $iconSize -eq 16) ]]; then
126-
echo "desktopToDarwinBundle: converting ${iconSize}x icon to rgb" >&2
126+
echo "desktopToDarwinBundle: converting ${iconSize}x icon to argb" >&2
127127
icnsutil convert "$out" "$in"
128128
rm "$in"
129129
fi

0 commit comments

Comments
 (0)