Skip to content

Commit

Permalink
To allow auto update of AppImage package
Browse files Browse the repository at this point in the history
Signed-off-by: Thatoo <[email protected]>

docker image 4

Signed-off-by: Thatoo <[email protected]>
  • Loading branch information
Thatoo committed Oct 20, 2021
1 parent c2dd75d commit 3ab698a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ name: AppImage

steps:
- name: build
image: ghcr.io/nextcloud/continuous-integration-client-appimage:client-appimage-2
image: ghcr.io/nextcloud/continuous-integration-client-appimage:client-appimage-3
environment:
CI_UPLOAD_GIT_TOKEN:
from_secret: CI_UPLOAD_GIT_TOKEN
Expand Down
2 changes: 1 addition & 1 deletion admin/linux/build-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export LD_LIBRARY_PATH=/app/usr/lib/
./squashfs-root/usr/bin/patchelf --set-rpath '$ORIGIN/' /app/usr/lib/lib${APPNAME}sync.so.0

# Build AppImage
./squashfs-root/AppRun ${DESKTOP_FILE} -appimage
./squashfs-root/AppRun ${DESKTOP_FILE} -appimage -updateinformation="gh-releases-zsync|nextcloud-releases|desktop|latest|Nextcloud-*-x86_64.AppImage.zsync"

#move AppImage
if [ ! -z "$DRONE_COMMIT" ]
Expand Down
4 changes: 3 additions & 1 deletion admin/linux/upload-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ cd /build

# AppImage
export APPIMAGE=$(readlink -f ./Nextcloud*.AppImage)
export UPDATE==$(readlink -f ./Nextcloud*.AppImage.zsync)
export BASENAME=$(basename ${APPIMAGE})

if ! test -e $APPIMAGE ; then
Expand Down Expand Up @@ -70,6 +71,7 @@ upload_release_asset()
{
uploadUrl=$1
echo $(curl --max-time 900 -u $GIT_USERNAME:$GIT_TOKEN -X POST $uploadUrl --header "Content-Type: application/octet-stream" --upload-file $APPIMAGE)
echo $(curl --max-time 900 -u $GIT_USERNAME:$GIT_TOKEN -X POST $uploadUrl --header "Content-Type: application/octet-stream" --upload-file $UPDATE)
}

delete_release_asset()
Expand Down Expand Up @@ -132,4 +134,4 @@ if [ $TAG_NAME != "master" ]; then
fi

echo
echo "AppImage link: $browserDownloadUrl"
echo "AppImage link: $browserDownloadUrl"

0 comments on commit 3ab698a

Please sign in to comment.