Skip to content

Commit 9b06980

Browse files
authored
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`.
1 parent b6e2e4c commit 9b06980

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • pkgs/applications/networking/browsers/google-chrome

pkgs/applications/networking/browsers/google-chrome/default.nix

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,13 @@ in stdenv.mkDerivation {
119119
--replace /opt $out/share \
120120
--replace $out/share/google/$appname/google-$appname $exe
121121
122-
for icon_file in $out/share/google/chrome*/product_logo_*[0-9].png; do
122+
for icon_file in $out/share/google/chrome*/product_logo_[0-9]*.png; do
123123
num_and_suffix="''${icon_file##*logo_}"
124-
icon_size="''${num_and_suffix%.*}"
124+
if [ $dist = "stable" ]; then
125+
icon_size="''${num_and_suffix%.*}"
126+
else
127+
icon_size="''${num_and_suffix%_*}"
128+
fi
125129
logo_output_prefix="$out/share/icons/hicolor"
126130
logo_output_path="$logo_output_prefix/''${icon_size}x''${icon_size}/apps"
127131
mkdir -p "$logo_output_path"

0 commit comments

Comments
 (0)