From b0d08998f5b1c613e5a1a7b425ab228a0af637b7 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Fri, 9 Mar 2018 09:36:05 -0500 Subject: genappimage: Use AppImage/AppImages repo to avoid redirects --- scripts/genappimage.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/genappimage.sh b/scripts/genappimage.sh index a73ccd86c7..b891a3f629 100755 --- a/scripts/genappimage.sh +++ b/scripts/genappimage.sh @@ -35,7 +35,7 @@ VERSION=$("$ROOT_DIR"/build/bin/nvim --version | head -n 1 | grep -o 'v.*') cd "$APP_BUILD_DIR" -curl -Lo "$APP_BUILD_DIR"/appimage_functions.sh https://github.com/probonopd/AppImages/raw/master/functions.sh +curl -Lo "$APP_BUILD_DIR"/appimage_functions.sh https://github.com/AppImage/AppImages/raw/master/functions.sh . ./appimage_functions.sh # Copy desktop and icon file to AppDir for AppRun to pick them up. @@ -53,7 +53,7 @@ move_lib # Delete stuff that should not go into the AppImage. # Delete dangerous libraries; see -# https://github.com/probonopd/AppImages/blob/master/excludelist +# https://github.com/AppImage/AppImages/blob/master/excludelist delete_blacklisted ######################################################################## @@ -71,10 +71,8 @@ cd "$APP_BUILD_DIR" # Get out of AppImage directory. # - Produces: ../out/$APP-$VERSION.glibc$GLIBC_NEEDED-$ARCH.AppImage generate_appimage -# NOTE: There is currently a bug in the `generate_appimage` function (see -# https://github.com/probonopd/AppImages/issues/228) that causes repeated builds -# that result in the same name to fail. -# Moving the final executable to a different folder gets around this issue. +# 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 # Remove the (now empty) folder the AppImage was built in -- cgit From e1f27cdb4cafaa72a055e82f5dae06c27e7557e5 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Fri, 9 Mar 2018 09:59:35 -0500 Subject: genappimage: Create a type 2 AppImage --- scripts/genappimage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/genappimage.sh b/scripts/genappimage.sh index b891a3f629..3b7dd6f2bd 100755 --- a/scripts/genappimage.sh +++ b/scripts/genappimage.sh @@ -69,7 +69,7 @@ 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_appimage +generate_type2_appimage # Moving the final executable to a different folder so it isn't in the # way for a subsequent build. -- cgit From 9dc3cc2c68088ab468d78d9d9b89acd72ac75f80 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Fri, 9 Mar 2018 10:51:27 -0500 Subject: 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. --- scripts/genappimage.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'scripts') 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 -- cgit