changed icon folder

This commit is contained in:
Kristian Krsnik 2024-01-25 15:24:05 +01:00
parent b2f8e566b7
commit 5ee613acf3
Signed by: Kristian
GPG Key ID: FD1330AC9F909E85

View File

@ -45,16 +45,18 @@
};
extraInstallCommands = ''
mkdir -p $out/share/icons/
mkdir -p $out/share/pixmaps/
ln -s "${desktopItem}/share/applications" $out/share/applications
for dimension in 128 256 512; do
dimensions=''${dimension}x''${dimension}
mkdir -p $out/share/icons/hicolor/$dimensions/apps
ln -s "${icon}" $out/share/pixmaps/${name}.png
"${pkgs.imagemagick}/bin/convert" ${icon} -resize $dimensions $out/share/icons/hicolor/$dimensions/apps/${name}.png
done
# for dimension in 128 256 512; do
# 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
'';
};
};