Add beta test install commands

This commit is contained in:
Abandoned Cart 2024-03-06 19:10:57 -05:00
parent defc3f1da5
commit 2af6dcd889
3 changed files with 56 additions and 1 deletions

View File

@ -47,7 +47,8 @@ jobs:
uses: vimtor/action-zip@v1.2
if: github.event_name != 'pull_request'
with:
files: ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net6.0/ConfusedPolarBear.Plugin.IntroSkipper.dll
files: |
ConfusedPolarBear.Plugin.IntroSkipper/bin/Debug/net6.0/ConfusedPolarBear.Plugin.IntroSkipper.dll scripts/install-dll.bat scripts/install-dll.sh
dest: intro-skipper-${{ env.GIT_HASH }}.zip
- name: Publish prerelease

27
scripts/install-dll.bat Normal file
View File

@ -0,0 +1,27 @@
if exist %UserProfile%\AppData\Local\jellyfin\plugins\ (
FOR /F "eol=| delims=" %%I IN ('DIR "%UserProfile%\AppData\Local\jellyfin\plugins\Intro Skipper*" /B /O-D /TW 2^>nul') DO (
SET "NewestFile=%UserProfile%\AppData\Local\jellyfin\plugins\%%I"
GOTO FoundFile
)
ECHO Intro Skipper plugin not found!
GOTO UserInput
)
if exist %ProgramData%\Jellyfin\Server\plugins\ (
FOR /F "eol=| delims=" %%I IN ('DIR "%ProgramData%\Jellyfin\Server\plugins\Intro Skipper*" /B /O-D /TW 2^>nul') DO (
SET "NewestFile=%ProgramData%\Jellyfin\Server\plugins\%%I"
GOTO FoundFile
)
ECHO Intro Skipper plugin not found!
GOTO UserInput
)
ECHO Jellyfin plugin directory not found!
GOTO UserInput
:FoundFile
echo "%NewestFile%"
xcopy /y ConfusedPolarBear.Plugin.IntroSkipper.dll "%NewestFile%"
:UserInput
@pause

27
scripts/install-dll.sh Executable file
View File

@ -0,0 +1,27 @@
if [ "$(uname)" == "Darwin" ]; then
# MacOS
if [ -d ~/.local/share/jellyfin/plugins/ ]; then
plugin=$(ls -d ~/.local/share/jellyfin/plugins/Intro\ Skipper* | sort -r | head -n 1 )
if [ -z "$plugin" ]; then
echo "Intro Skipper plugin not found!"
exit
fi
cp -f ConfusedPolarBear.Plugin.IntroSkipper*.dll \
"$plugin/ConfusedPolarBear.Plugin.IntroSkipper.dll"
else
echo "Jellyfin plugin directory not found!"
fi
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
# Linux
if [ -d /var/lib/jellyfin/plugins/ ]; then
plugin=$(ls -d /var/lib/jellyfin/plugins/Intro\ Skipper* | sort -r | head -n 1 )
if [ -z "$plugin' ]; then
echo "Intro Skipper plugin not found!"
exit
fi
cp -f ConfusedPolarBear.Plugin.IntroSkipper*.dll \
"$plugin/ConfusedPolarBear.Plugin.IntroSkipper.dll"
else
echo "Jellyfin plugin directory not found!"
fi
fi