- License the project under GPL-3.0-or-later (LICENSE + SPDX headers). - CI workflow builds every push and pull request and checks manifest.json. - Release workflow: an annotated v* tag builds that version, creates a Gitea release with the zip attached and adds it to manifest.json. - Release zips now live in Gitea releases instead of dist/; build.sh is a local test build only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
793 B
Bash
Executable File
13 lines
793 B
Bash
Executable File
#!/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"
|