diff --git a/build_and_run.sh b/build_run_android.sh similarity index 100% rename from build_and_run.sh rename to build_run_android.sh diff --git a/build_run_linux.sh b/build_run_linux.sh new file mode 100755 index 0000000..609ce19 --- /dev/null +++ b/build_run_linux.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +case $1 in + debug|release) + ;; + *) + echo "Usage: build_and_run.sh [type] where is type is 'debug' or 'release'" >&2 + exit 1 +esac + +type=$1 +[[ ${type} == "release" ]] && release_param+=(--release) +cargo build ${release_param[@]} --target x86_64-unknown-linux-gnu + +if [ $? -eq 0 ] +then + ./target/x86_64-unknown-linux-gnu/release/grim +fi \ No newline at end of file