ci: add build script.
This commit is contained in:
parent
8a81cdbd8b
commit
0c8ff92b9f
3 changed files with 35 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,2 +1,5 @@
|
|||
**/obj/
|
||||
**/bin/
|
||||
artifacts/
|
||||
smart-playlist/
|
||||
manifest.json
|
||||
|
|
16
Jellyfin.Plugin.SmartPlaylist/build.yaml
Normal file
16
Jellyfin.Plugin.SmartPlaylist/build.yaml
Normal 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
16
release.sh
Executable 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 $?
|
Loading…
Reference in a new issue