fix: rasterize sovran-hub icon to PNG at standard hicolor sizes

Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/e414bb3e-f166-48b2-bac9-ad36c24aceb6

Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-08 12:25:36 +00:00
committed by GitHub
parent 8d6a20d375
commit f0b7152c41

View File

@@ -242,6 +242,8 @@ let
src = ../../app; src = ../../app;
nativeBuildInputs = [ pkgs.librsvg ];
propagatedBuildInputs = with pkgs.python3Packages; [ propagatedBuildInputs = with pkgs.python3Packages; [
fastapi fastapi
uvicorn uvicorn
@@ -265,6 +267,11 @@ let
install -d $out/share/icons/hicolor/scalable/apps install -d $out/share/icons/hicolor/scalable/apps
cp sovran_systemsos_web/static/sovran-hub-icon.svg $out/share/icons/hicolor/scalable/apps/sovran-hub.svg cp sovran_systemsos_web/static/sovran-hub-icon.svg $out/share/icons/hicolor/scalable/apps/sovran-hub.svg
for size in 48 128 256 512; do
install -d $out/share/icons/hicolor/''${size}x''${size}/apps
rsvg-convert -w ''${size} -h ''${size} sovran_systemsos_web/static/sovran-hub-icon.svg -o $out/share/icons/hicolor/''${size}x''${size}/apps/sovran-hub.png
done
install -d $out/share/applications install -d $out/share/applications
cat > $out/share/applications/sovran-hub.desktop <<DESKTOP cat > $out/share/applications/sovran-hub.desktop <<DESKTOP
[Desktop Entry] [Desktop Entry]