From 322db937ec6c73fee0dbd27ac0da3b686244bb72 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 12 May 2022 18:46:26 +0200 Subject: [PATCH] Fix updater --- .github/workflows/updater.sh | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/updater.sh b/.github/workflows/updater.sh index ad75bfb..6a28689 100755 --- a/.github/workflows/updater.sh +++ b/.github/workflows/updater.sh @@ -69,26 +69,19 @@ src="app" tempdir="$(mktemp -d)" # Download sources and calculate checksum -filename=${asset_url##*/} +filename="temp.tar.gz" curl --silent -4 -L $asset_url -o "$tempdir/$filename" checksum=$(sha256sum "$tempdir/$filename" | head -c 64) # Delete temporary directory rm -rf $tempdir -# Get extension -if [[ $filename == *.tar.gz ]]; then - extension=tar.gz -else - extension=${filename##*.} -fi - # Rewrite source file cat < conf/$src.src SOURCE_URL=$asset_url SOURCE_SUM=$checksum SOURCE_SUM_PRG=sha256sum -SOURCE_FORMAT=$extension +SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true SOURCE_FILENAME= EOT