diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2016-12-20 16:44:01 +0100 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2016-12-20 23:31:21 +0100 |
| commit | 35151807385e32f4b21a21a642fca362e8a89f49 (patch) | |
| tree | f909afb5a81f8352a6662ed01a691eb91a08c198 /linuxdeploy_helper.sh | |
| parent | 3039a008dc4d392ec6c7199426f1b0ecd90b8d1a (diff) | |
| download | monzero-gui-35151807385e32f4b21a21a642fca362e8a89f49.tar.gz monzero-gui-35151807385e32f4b21a21a642fca362e8a89f49.tar.xz monzero-gui-35151807385e32f4b21a21a642fca362e8a89f49.zip | |
linux deploy scripts
Diffstat (limited to 'linuxdeploy_helper.sh')
| -rwxr-xr-x | linuxdeploy_helper.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/linuxdeploy_helper.sh b/linuxdeploy_helper.sh new file mode 100755 index 00000000..21bc5b8a --- /dev/null +++ b/linuxdeploy_helper.sh @@ -0,0 +1,28 @@ +#!/bin/bash + +ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +source $ROOT_DIR/utils.sh + +TARGET=$1 + +GUI_EXEC=$2 + +platform=$(get_platform) + +# Copy dependencies +EXCLUDE='libstdc++|libgcc_s.so|libc.so|libpthread' +cp -rv /usr/lib/x86_64-linux-gnu/qt5/qml $TARGET +cp -rv /usr/lib/x86_64-linux-gnu/qt5/plugins $TARGET +mkdir -p $TARGET/libs +ldd $TARGET/$GUI_EXEC | grep "=> /" | awk '{print $3}' | grep -Ev $EXCLUDE | xargs -I '{}' cp -v '{}' $TARGET/libs +ldd $TARGET/plugins/platforms/libqxcb.so| grep "=> /" | awk '{print $3}' | grep -Ev $EXCLUDE | xargs -I '{}' cp -v '{}' $TARGET/libs +cp -v /usr/lib/x86_64-linux-gnu/libQt5XmlPatterns.so.5 $TARGET/libs + +# 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 +./$GUI_EXEC +EOL |
