use recommended and supported icon sizes
This commit is contained in:
parent
de6c7f7c67
commit
c148aa428f
10
flake.nix
10
flake.nix
@ -49,9 +49,13 @@
|
|||||||
mkdir -p $out/share/
|
mkdir -p $out/share/
|
||||||
ln -s "${desktopItem}/share/applications" $out/share/applications
|
ln -s "${desktopItem}/share/applications" $out/share/applications
|
||||||
|
|
||||||
# Install icon
|
# Install icons
|
||||||
mkdir -p $out/share/icons/hicolor/1024x1024/apps
|
for dimension in 128 256 512; do
|
||||||
ln -s ${icon} $out/share/icons/hicolor/1024x1024/apps/${name}.png
|
dimensions=''${dimension}x''${dimension}
|
||||||
|
|
||||||
|
mkdir -p $out/share/icons/hicolor/$dimensions/apps
|
||||||
|
"${pkgs.imagemagick}/bin/convert" ${icon} -resize $dimensions $out/share/icons/hicolor/$dimensions/apps/${name}.png
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user