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

Set version in override #14

Merged
merged 2 commits into from
Jan 2, 2024
Merged
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
9 changes: 6 additions & 3 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ description: |
by Jellyfin.
base: core22
confinement: strict
grade: stable
version: "10.8.13"
adopt-info: jellyfin
license: GPL-2.0
architectures:
- build-on: arm64
Expand Down Expand Up @@ -44,14 +43,18 @@ parts:
- va-driver-all:${CRAFT_TARGET_ARCH}
- libavcodec58:${CRAFT_TARGET_ARCH}
- libavcodec-extra58:${CRAFT_TARGET_ARCH}
override-build: |
craftctl default
craftctl set grade="stable"
craftctl set version="$(apt info jellyfin-server | grep -E "^Version:" | cut -f2 -d\ )"
prime:
- -usr/share/man
- -var/spool
# This library is unused and links against another library which doesn't exist in 22.04
- -usr/lib/jellyfin/bin/libcoreclrtraceptprovider.so

apps:
server:
itrue-jellyfin:
command: usr/lib/jellyfin/bin/jellyfin --ffmpeg $SNAP/usr/lib/jellyfin-ffmpeg/ffmpeg --restartpath $SNAP/usr/lib/jellyfin/restart.sh
daemon: simple
plugs:
Expand Down