Merge pull request #140 from naturallaw777/copilot/add-icon-pngs-for-sovran-hub

[WIP] Add PNG icons for Sovran Hub desktop application
This commit is contained in:
Sovran_Systems
2026-04-08 07:26:30 -05:00
committed by GitHub

View File

@@ -242,6 +242,8 @@ let
src = ../../app;
nativeBuildInputs = [ pkgs.librsvg ];
propagatedBuildInputs = with pkgs.python3Packages; [
fastapi
uvicorn
@@ -265,6 +267,11 @@ let
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
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
cat > $out/share/applications/sovran-hub.desktop <<DESKTOP
[Desktop Entry]