From d04c9785b6570cbefd3dc9e6ecf644e5706ec395 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sawicz?= Date: Sat, 3 Feb 2024 23:53:35 +0100 Subject: [PATCH] snap: use the rolling release version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MichaƂ Sawicz --- .github/workflows/linux-snap.yml | 5 ----- snap/snapcraft.yaml | 9 ++++++++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/linux-snap.yml b/.github/workflows/linux-snap.yml index d0ee53435..6a3ed687a 100644 --- a/.github/workflows/linux-snap.yml +++ b/.github/workflows/linux-snap.yml @@ -1,11 +1,6 @@ name: Linux Snap on: - push: - paths-ignore: - - scripts/docker/** - branches: - - master pull_request: paths-ignore: - scripts/docker/** diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index e5cb4a09e..3b2f44d7b 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,5 +1,4 @@ name: subsurface -version: git icon: icons/subsurface-icon.svg summary: Open source divelog program for recreational, tech, and free-divers description: | @@ -12,6 +11,7 @@ description: | grade: stable confinement: strict base: core20 +adopt-info: subsurface apps: subsurface: @@ -151,6 +151,13 @@ parts: - qtlocation5-dev - qtpositioning5-dev - qttools5-dev + override-pull: | + snapcraftctl pull + if [ ! -f latest-subsurface-buildnumber ]; then + git fetch --depth=1 https://github.com/subsurface/nightly-builds.git branch-for-$( git rev-parse HEAD ) + git checkout FETCH_HEAD latest-subsurface-buildnumber + fi + snapcraftctl set-version $( scripts/get-version ) override-build: | mkdir -p ../install-root ln -sf ../../../stage/usr/lib/*/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so \