aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2018-03-09 10:51:27 -0500
committerJames McCoy <jamessan@jamessan.com>2018-03-09 20:49:26 -0500
commit9dc3cc2c68088ab468d78d9d9b89acd72ac75f80 (patch)
tree725e5ea96ffaf847beb2cbf89386122a2daec50a /scripts
parente1f27cdb4cafaa72a055e82f5dae06c27e7557e5 (diff)
downloadrneovim-9dc3cc2c68088ab468d78d9d9b89acd72ac75f80.tar.gz
rneovim-9dc3cc2c68088ab468d78d9d9b89acd72ac75f80.tar.bz2
rneovim-9dc3cc2c68088ab468d78d9d9b89acd72ac75f80.zip
genappimage: Include update information for releases/nightlies
This will allow users to use AppImageUpdate to update their AppImage. It requires publishing the created zsync file alongside the appimage file for the releases.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/genappimage.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/genappimage.sh b/scripts/genappimage.sh
index 3b7dd6f2bd..2c10ed7202 100755
--- a/scripts/genappimage.sh
+++ b/scripts/genappimage.sh
@@ -11,6 +11,8 @@ if [ -z "$ARCH" ]; then
export ARCH="$(arch)"
fi
+TAG=$1
+
# App name, used by generate_appimage.
APP=nvim
@@ -69,12 +71,16 @@ cd "$APP_BUILD_DIR" # Get out of AppImage directory.
# - Expects: $ARCH, $APP, $VERSION env vars
# - Expects: ./$APP.AppDir/ directory
# - Produces: ../out/$APP-$VERSION.glibc$GLIBC_NEEDED-$ARCH.AppImage
-generate_type2_appimage
+if [ -n "$TAG" ]; then
+ generate_type2_appimage -u "gh-releases-zsync|neovim|neovim|$TAG|nvim.appimage.zsync"
+else
+ generate_type2_appimage
+fi
# Moving the final executable to a different folder so it isn't in the
# way for a subsequent build.
-mv "$ROOT_DIR"/out/*.AppImage "$ROOT_DIR"/build/bin
+mv "$ROOT_DIR"/out/*.AppImage* "$ROOT_DIR"/build/bin
# Remove the (now empty) folder the AppImage was built in
rmdir "$ROOT_DIR"/out