ci: add build script.

This commit is contained in:
redxef 2024-10-28 01:44:23 +01:00
parent 8a81cdbd8b
commit 0c8ff92b9f
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921
3 changed files with 35 additions and 0 deletions

3
.gitignore vendored
View file

@ -1,2 +1,5 @@
**/obj/ **/obj/
**/bin/ **/bin/
artifacts/
smart-playlist/
manifest.json

View file

@ -0,0 +1,16 @@
name: Smart Playlist
guid: dd2326e3-4d3e-4bfc-80e6-28502c1131df
version: 0.1.0.0
targetAbi: 10.10.0.0
framework: net8.0
owner: redxef
overview: Smart playlists with Lisp filter engine.
description: |
Create smart playlists with a Lisp filter engine.
The same playlist definition can be used for multiple users.
category: "General"
artifacts:
- jellyfin-smart-playlist.dll
changelog: |
- Initial Alpha release.

16
release.sh Executable file
View file

@ -0,0 +1,16 @@
#!/bin/sh
JPRM="jprm"
PLUGIN=Jellyfin.Plugin.SmartPlaylist
VERSION=$(grep -Po '^ *version: * "*\K[^"$]+' "${PLUGIN}/build.yaml")
ARTIFACT_DIR=artifacts
REPO_URL="https://gitea.redxef.at/redxef/jellyfin-smart-playlist/releases/download/v${VERSION}/jellyfin-smart-playlist_${VERSION}.dll"
mkdir -p "${ARTIFACT_DIR}"
find "${PLUGIN}" -name project.assets.json -exec rm -v '{}' ';'
zipfile=$($JPRM --verbosity=debug plugin build "${PLUGIN}" --output="${ARTIFACT_DIR}" --version="${VERSION}") && {
$JPRM --verbosity=debug repo add --plugin-url="${REPO_URL}" . "${zipfile}"
}
exit $?