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:
committed by
GitHub
parent
8d6a20d375
commit
f0b7152c41
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user