diff options
| author | Alexander Blair <snipa@jagtech.io> | 2020-10-28 01:22:37 -0700 |
|---|---|---|
| committer | Alexander Blair <snipa@jagtech.io> | 2020-10-28 01:22:38 -0700 |
| commit | 04429e85e6ccedee455eaf3b3b50fbecc6d9a083 (patch) | |
| tree | 4088bb7cf2915069c3eaad3253a679686657f084 /linuxdeploy_helper.sh | |
| parent | e52d86d44229c531af6f60b375be27fe739bdfa7 (diff) | |
| parent | 9d2f083a973808a75a7a38b63e86d65339df02f5 (diff) | |
| download | monzero-gui-04429e85e6ccedee455eaf3b3b50fbecc6d9a083.tar.gz monzero-gui-04429e85e6ccedee455eaf3b3b50fbecc6d9a083.tar.xz monzero-gui-04429e85e6ccedee455eaf3b3b50fbecc6d9a083.zip | |
Merge pull request #3159
9d2f083a repo: cleanup qmake (selsta)
Diffstat (limited to 'linuxdeploy_helper.sh')
| -rwxr-xr-x | linuxdeploy_helper.sh | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/linuxdeploy_helper.sh b/linuxdeploy_helper.sh deleted file mode 100755 index 59c1873c..00000000 --- a/linuxdeploy_helper.sh +++ /dev/null @@ -1,62 +0,0 @@ -#!/bin/bash - -ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" -source $ROOT_DIR/utils.sh - -TARGET=$1 - -GUI_EXEC=$2 - -platform=$(get_platform) - -if [[ "$platform" == "linux64" ]]; then - PLAT_DIR="/usr/lib/x86_64-linux-gnu" -elif [[ "$platform" == "linux32" ]]; then - PLAT_DIR="/usr/lib/i386-linux-gnu" -elif [[ "$platform" == "linuxarmv7" ]]; then - PLAT_DIR="/usr/lib/arm-linux-gnueabihf" -elif [[ "$platform" == "linuxarmv8" ]]; then - PLAT_DIR="/usr/lib/aarch64-linux-gnu" -else - PLAT_DIR="/usr/lib" -fi - -if [ -z "$QT_DIR" ]; then - QT_DIR=$PLAT_DIR/qt5 -fi - -if [ -z "$QTXML_DIR" ]; then - QTXML_DIR=$PLAT_DIR -fi - -# Copy dependencies -EXCLUDE='libstdc++|libgcc_s.so|libc.so|libpthread' -INCLUDE='libunbound' -cp -rv $QT_DIR/qml $TARGET || exit -cp -rv $QT_DIR/plugins $TARGET || exit -mkdir -p $TARGET/libs || exit -#ldd $TARGET/$GUI_EXEC | grep "=> /" | awk '{print $3}' | grep $INCLUDE | xargs -I '{}' cp -v '{}' $TARGET/libs || exit -#ldd $TARGET/$GUI_EXEC | grep "=> /" | awk '{print $3}' | grep -Ev $EXCLUDE | xargs -I '{}' cp -v '{}' $TARGET/libs || exit -#ldd $TARGET/plugins/platforms/libqxcb.so| grep "=> /" | awk '{print $3}' | grep -Ev $EXCLUDE | xargs -I '{}' cp -v '{}' $TARGET/libs || exit -#cp -v $QTXML_DIR/libQt5XmlPatterns.so.5 $TARGET/libs || exit - -# Create start script -cat > $TARGET/start-gui.sh <<EOL -#!/bin/bash -export LD_LIBRARY_PATH=\`pwd\`/libs -export QT_PLUGIN_PATH=\`pwd\`/plugins -export QML2_IMPORT_PATH=\`pwd\`/qml -# make it so that it can be called from anywhere and also through soft links -SCRIPT_DIR="\$(dirname "\$(test -L "\${BASH_SOURCE[0]}" && readlink "\${BASH_SOURCE[0]}" || echo "\${BASH_SOURCE[0]}")")" -"\$SCRIPT_DIR"/$GUI_EXEC "\$@" -EOL - -# Create start script -cat > $TARGET/start-tails.AppImage <<EOL -#!/bin/bash -# Silly hack to provide a launcher that is double clickable -bash ./start-gui.sh -EOL - -chmod +x $TARGET/start-gui.sh -chmod +x $TARGET/start-tails.AppImage |
