aboutsummaryrefslogtreecommitdiff
path: root/development/qb64pe/qb64pe-launcher
blob: fa3299a98cf7c2be85543e4606151185a6fb2ecc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

VERSION=3.9.1
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 "$@" &