Bump snap to core22

This commit is contained in:
JonnyWong16 2024-03-02 16:45:02 -08:00
parent b73a2e9acc
commit 149c7fa7a0
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -7,7 +7,7 @@ description: >
The only thing missing is "why they watched it", but who am I to question your 42 plays of Frozen. The only thing missing is "why they watched it", but who am I to question your 42 plays of Frozen.
All statistics are presented in a nice and clean interface with many tables and graphs, which makes it easy to brag about your server to everyone else. All statistics are presented in a nice and clean interface with many tables and graphs, which makes it easy to brag about your server to everyone else.
base: core20 base: core22
confinement: strict confinement: strict
architectures: architectures:
@ -37,8 +37,8 @@ parts:
- python3-setuptools - python3-setuptools
- python3-pkg-resources - python3-pkg-resources
override-pull: | override-pull: |
snapcraftctl pull craftctl default
git config --global --add safe.directory /data/parts/tautulli/src git config --global --add safe.directory /root/parts/tautulli/src
TAG_FULL=$(git describe --tag) TAG_FULL=$(git describe --tag)
TAG=$(echo $TAG_FULL | grep -oP '(v\d+\.\d+\.\d+(?>-beta)?)') TAG=$(echo $TAG_FULL | grep -oP '(v\d+\.\d+\.\d+(?>-beta)?)')
BRANCH=$(git rev-parse --abbrev-ref HEAD) BRANCH=$(git rev-parse --abbrev-ref HEAD)
@ -60,10 +60,10 @@ parts:
fi fi
echo $BRANCH > branch.txt echo $BRANCH > branch.txt
echo $COMMIT > version.txt echo $COMMIT > version.txt
snapcraftctl set-version "$VERSION" craftctl set version="$VERSION"
snapcraftctl set-grade "$GRADE" craftctl set grade="$GRADE"
override-prime: | override-prime: |
snapcraftctl prime craftctl default
mkdir -p usr/bin mkdir -p usr/bin
ln -s /usr/bin/python3 usr/bin/python3 ln -s /usr/bin/python3 usr/bin/python3