···115115 }
116116117117 # macOS does not correctly display 16x and 32x png icons on app bundles
118118- # they need to be converted to rgb+mask (argb is supported only from macOS 11)
118118+ # 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
123123- local -r out=${in%.png}.rgb
123123+ local -r out=${in%.png}.argb
124124125125 if [[ ($scale -eq 1) && ($iconSize -eq 32 || $iconSize -eq 16) ]]; then
126126- echo "desktopToDarwinBundle: converting ${iconSize}x icon to rgb" >&2
126126+ echo "desktopToDarwinBundle: converting ${iconSize}x icon to argb" >&2
127127 icnsutil convert "$out" "$in"
128128 rm "$in"
129129 fi