google-chrome-{beta,dev}: fix icons (#95389)
The icon naming scheme for Chrome Beta/Dev has changed from
`product_logo_{res}.png` to `product_logo_{res}_{branch}.png`.
This commit is contained in:
@@ -119,9 +119,13 @@ in stdenv.mkDerivation {
|
|||||||
--replace /opt $out/share \
|
--replace /opt $out/share \
|
||||||
--replace $out/share/google/$appname/google-$appname $exe
|
--replace $out/share/google/$appname/google-$appname $exe
|
||||||
|
|
||||||
for icon_file in $out/share/google/chrome*/product_logo_*[0-9].png; do
|
for icon_file in $out/share/google/chrome*/product_logo_[0-9]*.png; do
|
||||||
num_and_suffix="''${icon_file##*logo_}"
|
num_and_suffix="''${icon_file##*logo_}"
|
||||||
icon_size="''${num_and_suffix%.*}"
|
if [ $dist = "stable" ]; then
|
||||||
|
icon_size="''${num_and_suffix%.*}"
|
||||||
|
else
|
||||||
|
icon_size="''${num_and_suffix%_*}"
|
||||||
|
fi
|
||||||
logo_output_prefix="$out/share/icons/hicolor"
|
logo_output_prefix="$out/share/icons/hicolor"
|
||||||
logo_output_path="$logo_output_prefix/''${icon_size}x''${icon_size}/apps"
|
logo_output_path="$logo_output_prefix/''${icon_size}x''${icon_size}/apps"
|
||||||
mkdir -p "$logo_output_path"
|
mkdir -p "$logo_output_path"
|
||||||
|
|||||||
Reference in New Issue
Block a user