From 03cdee72bde31461730e46558d447a7eb3a73d42 Mon Sep 17 00:00:00 2001 From: Ken VanDine Date: Wed, 12 Jan 2022 15:45:26 -0500 Subject: [PATCH 1/2] Added snap packaging --- snap/snapcraft.yaml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 snap/snapcraft.yaml diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml new file mode 100644 index 0000000..6d17987 --- /dev/null +++ b/snap/snapcraft.yaml @@ -0,0 +1,45 @@ +name: warble +base: core20 +adopt-info: warble +grade: stable +confinement: strict +compression: lzo + +layout: + /usr/share/com.github.avojak.warble: + bind: $SNAP/usr/share/com.github.avojak.warble + +slots: + # for GtkApplication registration + transporter: + interface: dbus + bus: session + name: com.github.avojak.warble + +parts: + granite: + source: https://github.com/elementary/granite.git + source-tag: 6.2.0 + meson-parameters: [ --prefix=/usr ] + plugin: meson + + warble: + after: [ granite ] + source: . + plugin: meson + meson-parameters: [ --prefix=/usr ] + parse-info: [usr/share/metainfo/com.github.avojak.warble.appdata.xml] + override-pull: | + snapcraftctl pull + sed -i.bak -e 's|Icon=@icon@|Icon=${SNAP}/meta/gui/warble.svg|g' data/com.github.avojak.warble.desktop.in.in + override-build: | + snapcraftctl build + mkdir -p $SNAPCRAFT_PART_INSTALL/meta/gui/ + cp $SNAPCRAFT_PART_SRC/data/assets/icons/128x128/com.github.avojak.warble.svg $SNAPCRAFT_PART_INSTALL/meta/gui/warble.svg + +apps: + warble: + extensions: [gnome-3-38] + desktop: usr/share/applications/com.github.avojak.warble.desktop + command: usr/bin/com.github.avojak.warble + common-id: com.github.avojak.warble From 79e711b9ff1b0b7457052107c3cdaa8a7b6aa523 Mon Sep 17 00:00:00 2001 From: Ken VanDine Date: Wed, 12 Jan 2022 19:13:21 -0500 Subject: [PATCH 2/2] Fixed slot name --- snap/snapcraft.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6d17987..fad3f6b 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -11,7 +11,7 @@ layout: slots: # for GtkApplication registration - transporter: + warble: interface: dbus bus: session name: com.github.avojak.warble