summaryrefslogtreecommitdiffstats
path: root/development/qb64pe/qb64pe-launcher
blob: 8729180619a4bf6998810d4a83ba7245564589e7 (plain)
#!/bin/sh

VERSION=3.12.0
DEST="$HOME/.config/qb64pe-$VERSION"
if [ ! -d $DEST ]
then
    notify-send "Setting up $DEST workspace for first run, please be patient..."
    CWD=`pwd`
    mkdir -p $DEST
    cd $DEST
    tar xvfz /usr/src/qb64pe-$VERSION/QB64pe-$VERSION.tar.gz --strip-components=1
    make clean OS=lnx
    make OS=lnx BUILD_QB64=y -j1
    rm -rf run_qb64pe.sh
    ln -s /usr/bin/qb64pe-launcher run_qb64pe.sh
    rm -rf .ci
    rm -rf .github
    rm -rf .gitignore
    rm -rf .clang-format
    rm -rf setup_*
    rm -rf qb64pe.1
    cd $CWD
fi
$DEST/qb64pe "$@" &