git repos / blockattack-game

source/misc/standalone/blockattack_standalone_launcher

browsing at commit = 7526f4e14e39a9d40d9ab5586320af1915a207e8

branches: v2.2.X

tags: v2.2.0

raw · blame · history

#!/bin/bash

# This file is based on the guide from https://itch.io/docs/itch/integrating/platforms/linux.html

# Move to script's directory
cd "`dirname "$0"`"

# Get the kernel/architecture information
ARCH=`uname -m`

# Set the libpath and pick the proper binary
if [ "$ARCH" == "x86_64" ]; then
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./x86_64/
    ./x86_64/blockattack "$@"
else
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./x86/
    ./x86/blockattack "$@"
fi