git repos / blockattack-game

blame: source/misc/standalone/blockattack_standalone_launcher

normal view · raw

ab86a00f sago007 2017-08-31 19:08 1
#!/bin/bash
ab86a00f sago007 2017-08-31 19:08 2
fbb19101 sago007 2017-09-02 11:50 3
# This file is based on the guide from https://itch.io/docs/itch/integrating/platforms/linux.html
fbb19101 sago007 2017-09-02 11:50 4
ab86a00f sago007 2017-08-31 19:08 5
# Move to script's directory
ab86a00f sago007 2017-08-31 19:08 6
cd "`dirname "$0"`"
ab86a00f sago007 2017-08-31 19:08 7
ab86a00f sago007 2017-08-31 19:08 8
# Get the kernel/architecture information
ab86a00f sago007 2017-08-31 19:08 9
ARCH=`uname -m`
ab86a00f sago007 2017-08-31 19:08 10
ab86a00f sago007 2017-08-31 19:08 11
# Set the libpath and pick the proper binary
ab86a00f sago007 2017-08-31 19:08 12
if [ "$ARCH" == "x86_64" ]; then
ab86a00f sago007 2017-08-31 19:08 13
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./x86_64/
ab86a00f sago007 2017-08-31 19:08 14
    ./x86_64/blockattack "$@"
ab86a00f sago007 2017-08-31 19:08 15
else
7ebf9785 sago007 2017-09-02 10:51 16
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./x86/
7ebf9785 sago007 2017-09-02 10:51 17
    ./x86/blockattack "$@"
ab86a00f sago007 2017-08-31 19:08 18
fi
1970-01-01 00:00 19