1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/pleroma_ynh.git synced 2024-09-03 20:15:59 +02:00

Fix auto-updater (#221)

This commit is contained in:
tituspijean 2022-12-21 18:11:07 +01:00 committed by GitHub
parent 79f1bca566
commit 3d02f4fefd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,9 @@ echo "Current version: $current_version"
echo "Latest release from upstream: $version" echo "Latest release from upstream: $version"
echo "VERSION=$version" >> $GITHUB_ENV echo "VERSION=$version" >> $GITHUB_ENV
echo "RELEASE=$release" >> $GITHUB_ENV echo "RELEASE=$release" >> $GITHUB_ENV
echo "DESCRIPTION=$description" >> $GITHUB_ENV echo "DESCRIPTION<<EOF" >> $GITHUB_ENV
echo "$description" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
# For the time being, let's assume the script will fail # For the time being, let's assume the script will fail
echo "PROCEED=false" >> $GITHUB_ENV echo "PROCEED=false" >> $GITHUB_ENV
@ -70,7 +72,7 @@ for arch in ${architectures[@]}; do
tempdir="$(mktemp -d)" tempdir="$(mktemp -d)"
# Download sources and calculate checksum # Download sources and calculate checksum
filename=${asset_url##*/} filename="asset-$arch.zip"
curl --silent -4 -L $asset_url -o "$tempdir/$filename" curl --silent -4 -L $asset_url -o "$tempdir/$filename"
checksum=$(sha256sum "$tempdir/$filename" | head -c 64) checksum=$(sha256sum "$tempdir/$filename" | head -c 64)