Unverified Commit 9aa0ca4f authored by dish's avatar dish Committed by GitHub
Browse files

flclash: move icon to spec-compliant location (#494642)

parents e4d2c3f9 26965d89
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@
  makeDesktopItem,
  copyDesktopItems,
  autoPatchelfHook,
  imagemagick,
}:

let
@@ -64,6 +65,7 @@ flutter335.buildFlutterApplication {
  nativeBuildInputs = [
    copyDesktopItems
    autoPatchelfHook
    imagemagick
  ];

  buildInputs = [
@@ -96,7 +98,8 @@ flutter335.buildFlutterApplication {
  '';

  postInstall = ''
    install -D --mode=0644 assets/images/icon.png $out/share/pixmaps/flclash.png
    mkdir -p $out/share/icons/hicolor/512x512/apps
    magick assets/images/icon.png -resize 512x512 $out/share/icons/hicolor/512x512/apps/flclash.png
  '';

  passthru = {