jellyfin-smart-playlist/Test/test.sh

22 lines
505 B
Bash
Raw Normal View History

2024-06-27 01:47:44 +02:00
#!/bin/sh
JELLYFIN=jellyfin/jellyfin
2024-06-27 01:47:44 +02:00
set -eu
cd "$(dirname "$0")"
pwd
(
cd ../Jellyfin.Plugin.SmartPlaylist/
2024-06-27 01:47:44 +02:00
dotnet build
)
pwd
mkdir -p ./cache ./media ./config/plugins/jellyfin-smart-playlist
cp ../Jellyfin.Plugin.SmartPlaylist/bin/Debug/net8.0/jellyfin-smart-playlist.dll ./config/plugins/jellyfin-smart-playlist/
docker pull "$JELLYFIN"
2024-06-27 01:47:44 +02:00
docker run --rm --user "$(id -u):$(id -g)" \
-v ./cache:/cache \
-v ./config:/config \
-v ./media:/media \
2024-06-27 01:47:44 +02:00
-p 8096:8096 \
"$JELLYFIN"