From 8d1621403833a4eba525811fd1d6c8df54ea2708 Mon Sep 17 00:00:00 2001 From: hrzlgnm Date: Sun, 20 Oct 2024 23:28:29 +0200 Subject: [PATCH] chore(snap): add icon, and fix other properties --- snapcraft.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/snapcraft.yaml b/snapcraft.yaml index 859afcd..86fec0a 100644 --- a/snapcraft.yaml +++ b/snapcraft.yaml @@ -6,6 +6,11 @@ description: | A cross platform mDNS-Browser app written in Rust using tauri and leptos grade: stable confinement: strict +icon: src-tauri/icons/icon.png +issues: https://github.com/hrzlgnm/mdns-browser/issues +license: MIT License +source-code: https://github.com/hrzlgnm/mdns-browser + platforms: amd64: build-on: [amd64] @@ -37,5 +42,6 @@ parts: - libayatana-appindicator3-1 source: https://github.com/hrzlgnm/mdns-browser/releases/download/mdns-browser-v0.9.0/mdns-browser_0.9.0_amd64.deb source-type: deb - override-build: snapcraftctl build + override-build: | + snapcraftctl build sed -i -e "s|Icon=mdns-browser|Icon=/usr/share/icons/hicolor/32x32/apps/mdns-browser.png|g" $SNAPCRAFT_PART_INSTALL/usr/share/applications/mdns-browser.desktop