xonotic: fix icon installation

This commit is contained in:
Aidan Gauland 2023-07-07 20:15:45 +12:00 committed by Emery Hemingway
parent 119ba5ce80
commit e15f252fb9

View file

@ -97,10 +97,17 @@ let
enableParallelBuilding = true; enableParallelBuilding = true;
installPhase = ('' installPhase = (''
for size in 16x16 24x24 32x32 48x48 64x64 72x72 96x96 128x128 192x192 256x256 512x512 1024x1024 scalable; do
install -Dm644 ../../misc/logos/xonotic_icon.svg \ install -Dm644 ../../misc/logos/xonotic_icon.svg \
$out/share/icons/hicolor/$size/xonotic.svg $out/share/icons/hicolor/scalable/apps/xonotic.svg
pushd ../../misc/logos/icons_png
for img in *.png; do
size=''${img#xonotic_}
size=''${size%.png}
dimensions="''${size}x''${size}"
install -Dm644 $img \
$out/share/icons/hicolor/$dimensions/apps/xonotic.png
done done
popd
'' + lib.optionalString withDedicated '' '' + lib.optionalString withDedicated ''
install -Dm755 darkplaces-dedicated "$out/bin/xonotic-dedicated" install -Dm755 darkplaces-dedicated "$out/bin/xonotic-dedicated"
'' + lib.optionalString withGLX '' '' + lib.optionalString withGLX ''