lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

desktopToDarwinBundle: use ARGB format

Very belatedly, since we now only support macOS ≥ 11.3.

Co-authored-by: Karolis Stasaitis <contact@carlossless.io>

Emily ed0a92c7 48848c77

+3 -3
+3 -3
pkgs/build-support/setup-hooks/desktop-to-darwin-bundle.sh
··· 115 115 } 116 116 117 117 # 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 119 119 function convertIfUnsupportedIcon() { 120 120 local -r in=$1 121 121 local -r iconSize=$2 122 122 local -r scale=$3 123 - local -r out=${in%.png}.rgb 123 + local -r out=${in%.png}.argb 124 124 125 125 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 127 127 icnsutil convert "$out" "$in" 128 128 rm "$in" 129 129 fi