From a2ee0871f18117deda06d5fd92bef6a5bff2a5e6 Mon Sep 17 00:00:00 2001 From: Dongxu Li Date: Sat, 19 Aug 2023 22:07:17 -0400 Subject: [PATCH] create Image --- scripts/ubuntu-install/createAppImage.sh | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/scripts/ubuntu-install/createAppImage.sh b/scripts/ubuntu-install/createAppImage.sh index daaf55a0..2623f3f0 100755 --- a/scripts/ubuntu-install/createAppImage.sh +++ b/scripts/ubuntu-install/createAppImage.sh @@ -1,15 +1,21 @@ -echo "done" -wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage -wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage +echo "Begin AppImage building" +pwd +pushd build +export QTDEPLOY=linuxdeploy-x86_64.AppImage +export QTDEPLOYPLUGIN=linuxdeploy-plugin-qt-x86_64.AppImage +wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/$QTDEPLOY +wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/$QTDEPLOYPLUGIN chmod a+x linuxdeploy-x86_64.AppImage chmod a+x linuxdeploy-plugin-qt-x86_64.AppImage #sudo cp ../AppImage/librecad.* AppDir/ #sudo cp /usr/local/lib/libdxfrw.so.1 AppDir/usr/lib -pwd -ls +sudo LD_LIBRARY_PATH=AppDir/usr/lib/x86_64-linux-gnu/:AppDir/usr/lib64:AppDir/usr/lib ./$QTDEPLOY --appdir AppDir \ +--output appimage \ +--executable AppDir/usr/bin/librecad \ +--desktop-file AppDir/librecad.desktop \ +--icon-file AppDir/librecad.svg --plugin qt -sudo LD_LIBRARY_PATH=AppDir/usr/lib/x86_64-linux-gnu/:AppDir/usr/lib64:AppDir/usr/lib ./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage --executable AppDir/usr/bin/librecad --desktop-file AppDir/librecad.desktop --icon-file AppDir/librecad.svg --plugin qt