snap: use the rolling release version

Signed-off-by: Michał Sawicz <michal@sawicz.net>
This commit is contained in:
Michał Sawicz 2024-02-03 23:53:35 +01:00 committed by Dirk Hohndel
parent 9cdb9f7989
commit d04c9785b6
2 changed files with 8 additions and 6 deletions

View file

@ -1,11 +1,6 @@
name: Linux Snap name: Linux Snap
on: on:
push:
paths-ignore:
- scripts/docker/**
branches:
- master
pull_request: pull_request:
paths-ignore: paths-ignore:
- scripts/docker/** - scripts/docker/**

View file

@ -1,5 +1,4 @@
name: subsurface name: subsurface
version: git
icon: icons/subsurface-icon.svg icon: icons/subsurface-icon.svg
summary: Open source divelog program for recreational, tech, and free-divers summary: Open source divelog program for recreational, tech, and free-divers
description: | description: |
@ -12,6 +11,7 @@ description: |
grade: stable grade: stable
confinement: strict confinement: strict
base: core20 base: core20
adopt-info: subsurface
apps: apps:
subsurface: subsurface:
@ -151,6 +151,13 @@ parts:
- qtlocation5-dev - qtlocation5-dev
- qtpositioning5-dev - qtpositioning5-dev
- qttools5-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: | override-build: |
mkdir -p ../install-root mkdir -p ../install-root
ln -sf ../../../stage/usr/lib/*/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so \ ln -sf ../../../stage/usr/lib/*/qt5/plugins/geoservices/libqtgeoservices_googlemaps.so \