Created
February 29, 2016 06:12
-
-
Save voldyman/b1894115173c15e3c63f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir AppDir | |
mkdir AppDir/bin | |
mkdir AppDir/data | |
cp $INSTALLDIR/app AppDir/bin | |
cp -r $INSTALLDIR/data AppDir | |
cp `ldd AppDir/bin/app | grep -o '\W/[^ ]*'` AppDir/bin | |
cat << "EOF" > AppDir/app | |
#!/bin/bash | |
SCRIPT_PATH=$(dirname $(readlink -f $0)) | |
$SCRIPT_PATH/bin/ld-*.so.2 --library-path $SCRIPT_PATH/bin $SCRIPT_PATH/bin/app $* | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://news.ycombinator.com/item?id=11187198