From f9c7df01ad70d52d33512dd7f952fe28a6e361d0 Mon Sep 17 00:00:00 2001 From: DanielDevBR Date: Fri, 16 Oct 2020 22:20:13 -0300 Subject: [PATCH] bugfix AppImage creation --- create_appimage.sh | 16 ++++++++-------- src/resources/linux/appimage/functions.sh | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/create_appimage.sh b/create_appimage.sh index dd60534..f896e52 100755 --- a/create_appimage.sh +++ b/create_appimage.sh @@ -1,9 +1,9 @@ #!/bin/bash -# if [[ "$VSCODE_ARCH" == "x64" ]]; then -# # install a dep needed for this process -# sudo apt-get install desktop-file-utils -# -# cd .. -# -# bash -e src/resources/linux/appimage/pkg2appimage VSCodium-AppImage-Recipe.yml -# fi +if [[ "$VSCODE_ARCH" == "x64" ]]; then + # install a dep needed for this process + sudo apt-get install desktop-file-utils + + cd .. + export DOCKER_BUILD=1 + bash -e src/resources/linux/appimage/pkg2appimage VSCodium-AppImage-Recipe.yml +fi diff --git a/src/resources/linux/appimage/functions.sh b/src/resources/linux/appimage/functions.sh index f7fc19b..efb4dca 100644 --- a/src/resources/linux/appimage/functions.sh +++ b/src/resources/linux/appimage/functions.sh @@ -187,7 +187,7 @@ generate_appimage() mkdir -p ../out || true rm ../out/$APP"-"$VERSION".glibc"$GLIBC_NEEDED"-"$ARCH".AppImage" 2>/dev/null || true GLIBC_NEEDED=$(glibc_needed) - ./AppImageAssistant ./$APP.AppDir/ ../out/$APP"-"$VERSION".glibc"$GLIBC_NEEDED"-"$ARCH".AppImage" + ./AppImageAssistant --appimage-extract-and-run ./$APP.AppDir/ ../out/$APP"-"$VERSION".glibc"$GLIBC_NEEDED"-"$ARCH".AppImage" } # Generate AppImage type 2