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