Skip to content

Commit

Permalink
google-chrome-{beta,dev}: fix icons (#95389)
Browse files Browse the repository at this point in the history
The icon naming scheme for Chrome Beta/Dev has changed from
`product_logo_{res}.png` to `product_logo_{res}_{branch}.png`.
  • Loading branch information
samuelgrf committed Aug 21, 2020
1 parent b6e2e4c commit 9b06980
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -119,9 +119,13 @@ in stdenv.mkDerivation {
--replace /opt $out/share \
--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_}"
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_path="$logo_output_prefix/''${icon_size}x''${icon_size}/apps"
mkdir -p "$logo_output_path"
Expand Down

0 comments on commit 9b06980

Please sign in to comment.