aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rwxr-xr-xscripts/genappimage.sh10
2 files changed, 13 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e349cc4d0f..4a880d270a 100644
--- a/Makefile
+++ b/Makefile
@@ -141,6 +141,11 @@ check-single-includes: build/.ran-cmake
appimage:
bash scripts/genappimage.sh
+# Build an appimage with embedded update information appimage-nightly for
+# nightly builds or appimage-latest for a release
+appimage-%:
+ bash scripts/genappimage.sh $*
+
lint: check-single-includes clint testlint lualint
.PHONY: test testlint lualint functionaltest unittest lint clint clean distclean nvim libnvim cmake deps install appimage
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