From ae6dfcfe21c59143184cdaffb1f218e5d1023032 Mon Sep 17 00:00:00 2001 From: TheAssassin Date: Sat, 30 Jun 2018 16:10:35 +0200 Subject: [PATCH] Bundle AppImage plugin in Docker friendly way --- travis/build.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/travis/build.sh b/travis/build.sh index ec8a2ec..27b4118 100755 --- a/travis/build.sh +++ b/travis/build.sh @@ -46,12 +46,17 @@ LINUXDEPLOY_ARGS=("--init-appdir" "--appdir" "AppDir" "-e" "bin/linuxdeploy" "-i bin/linuxdeploy "${LINUXDEPLOY_ARGS[@]}" # bundle AppImage plugin +mkdir -p AppDir/plugins + wget https://github.com/TheAssassin/linuxdeploy-plugin-appimage/releases/download/continuous/linuxdeploy-plugin-appimage-"$ARCH".AppImage chmod +x linuxdeploy-plugin-appimage-"$ARCH".AppImage -mv linuxdeploy-plugin-appimage-"$ARCH".AppImage AppDir/usr/bin/ +./linuxdeploy-plugin-appimage-"$ARCH".AppImage --appimage-extract +mv squashfs-root/ AppDir/plugins/linuxdeploy-plugin-appimage + +ln -s ../../plugins/linuxdeploy-plugin-appimage/AppRun AppDir/usr/bin/linuxdeploy-plugin-appimage # build AppImage using plugin -AppDir/usr/bin/linuxdeploy-plugin-appimage-"$ARCH".AppImage --appdir AppDir/ +AppDir/usr/bin/linuxdeploy-plugin-appimage --appdir AppDir/ # rename AppImage to avoid "Text file busy" issues when using it to create another one mv ./linuxdeploy*.AppImage test.AppImage