diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index d077842..f8ae2f5 100755 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -63,7 +63,7 @@ echo "Handling asset at $asset_url" # Here we base the source file name upon a unique keyword in the assets url (admin vs. update) # Leave $src empty to ignore the asset case $asset_url in - *"komga-"*".jar"*) + *"komga-"*".jar") src="app" ;; *) @@ -86,8 +86,8 @@ checksum=$(sha256sum "$tempdir/$filename" | head -c 64) rm -rf $tempdir # Get extension -if [[ $filename == *.tar.gz ]]; then - extension=tar.gz +if [[ $filename == *.jar ]]; then + extension=jar else extension=${filename##*.} fi diff --git a/conf/app.src b/conf/app.src index 8416fc3..d32fdbe 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,7 +1,7 @@ -SOURCE_URL=https://github.com/gotson/komga/releases/download/v0.153.2/komga-0.153.2.jar.sha256 -SOURCE_SUM=f77ebf983e8760c22c178f52abb2fbdf832dc35835b709032ff0b3fed51038b8 +SOURCE_URL=https://github.com/gotson/komga/releases/download/v0.153.2/komga-0.153.2.jar +SOURCE_SUM=0473721843dd31ad293eef05eb5b8213e538012713be6e31d8988874bdbb5abe SOURCE_SUM_PRG=sha256sum -SOURCE_FORMAT=sha256 +SOURCE_FORMAT=jar SOURCE_IN_SUBDIR=false SOURCE_EXTRACT=false SOURCE_FILENAME=komga.jar