#!/bin/sh # Local test build (releases are made by the Gitea pipeline from version tags): # ./build.sh -> out/lightsofftimer_dev.zip # Needs only Docker; builds in the official .NET 10 SDK image. set -eu cd "$(dirname "$0")" rm -rf out src/Jellyfin.Plugin.LightsOffTimer/bin src/Jellyfin.Plugin.LightsOffTimer/obj docker run --rm --user "$(id -u):$(id -g)" -e HOME=/tmp -e DOTNET_CLI_HOME=/tmp -e DOTNET_NOLOGO=1 \ -v "$PWD":/repo -w /repo mcr.microsoft.com/dotnet/sdk:10.0 \ dotnet publish src/Jellyfin.Plugin.LightsOffTimer/Jellyfin.Plugin.LightsOffTimer.csproj -c Release -o /repo/out (cd out && python3 -c "import zipfile; zipfile.ZipFile('lightsofftimer_dev.zip', 'w', zipfile.ZIP_DEFLATED).write('Jellyfin.Plugin.LightsOffTimer.dll')") echo "out/lightsofftimer_dev.zip"