mirror of https://github.com/nextcloud/desktop
To allow auto update of AppImage package
Signed-off-by: Thatoo <thatoo@users.noreply.github.com> docker image 4 Signed-off-by: Thatoo <thatoo@users.noreply.github.com>
This commit is contained in:
parent
c2dd75df12
commit
3ab698a0c5
|
@ -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
|
||||
|
|
|
@ -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" ]
|
||||
|
|
|
@ -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
|
||||
|
@ -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()
|
||||
|
@ -132,4 +134,4 @@ if [ $TAG_NAME != "master" ]; then
|
|||
fi
|
||||
|
||||
echo
|
||||
echo "AppImage link: $browserDownloadUrl"
|
||||
echo "AppImage link: $browserDownloadUrl"
|
||||
|
|
Loading…
Reference in New Issue