Skip to content

Commit

Permalink
address remnants of $BASENAME
Browse files Browse the repository at this point in the history
Signed-off-by: Fuseteam <[email protected]>
  • Loading branch information
Fuseteam committed May 15, 2022
1 parent 1df8735 commit 2e80905
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions admin/linux/upload-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,13 @@ if ! test -e $APPIMAGE ; then
exit 1
fi

echo "Found AppImage: $BASENAME"
echo "Found AppImage: $BASENAME_APPIMAGE"

if ! test -e $UPDATE ; then
exit 1
fi

echo "Found zsync: $BASENAME_UPDATE"

if [ $TAG_NAME != "master" ]; then
# Delete all old comments in desktop PR, starting with "AppImage file:"
Expand Down Expand Up @@ -121,7 +127,7 @@ for data in $(echo $assets | jq -r '.[] | @uri'); do
done

# Upload release asset
echo "Uploading new asset: $BASENAME"
echo "Uploading new asset: $BASENAME_APPIMAGE, $BASENAME_UPDATE"

json=$(upload_release_asset "$uploadUrlAppImage" "$uploadUrlUpdate")
browserDownloadUrl=$(echo $json | jq -r '.browser_download_url')
Expand All @@ -133,7 +139,7 @@ fi

if [ $TAG_NAME != "master" ]; then
# Create comment in desktop PR
curl 2>/dev/null -u $GIT_USERNAME:$GIT_TOKEN -X POST $DESKTOP_API_BASE_URL/issues/$PR/comments -d "{ \"body\" : \"AppImage file: [$BASENAME]($browserDownloadUrl) <br/><br/>To test this change/fix you can simply download above AppImage file and test it. <br/><br/>Please make sure to quit your existing Nextcloud app and backup your data. \" }"
curl 2>/dev/null -u $GIT_USERNAME:$GIT_TOKEN -X POST $DESKTOP_API_BASE_URL/issues/$PR/comments -d "{ \"body\" : \"AppImage file: [$BASENAME_APPIMAGE]($browserDownloadUrl) <br/><br/>[$BASENAME_UPDATE]($browserDownloadUrl)<br/><br/>To test this change/fix you can simply download above AppImage file and test it. <br/><br/>Please make sure to quit your existing Nextcloud app and backup your data. \" }"
fi

echo
Expand Down

0 comments on commit 2e80905

Please sign in to comment.