Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added snap packaging #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -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
warble:
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