mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-16 06:20:34 +00:00
29 lines
449 B
Bash
Executable File
29 lines
449 B
Bash
Executable File
#!/bin/bash
|
|
set -eu
|
|
|
|
BUILD="Release"
|
|
|
|
MONO_ARGS=("--llvm" "--server" "-O=all")
|
|
|
|
PRINT_USAGE() {
|
|
echo "Usage: $0 [debug/release]"
|
|
exit 1
|
|
}
|
|
|
|
for ARG in "$@"; do
|
|
case "$ARG" in
|
|
release|Release) BUILD="Release" ;;
|
|
debug|Debug) BUILD="Debug" ;;
|
|
*) PRINT_USAGE
|
|
esac
|
|
done
|
|
|
|
BINARY="ArchiSteamFarm/bin/$BUILD/ArchiSteamFarm.exe"
|
|
|
|
if [[ ! -f "$BINARY" ]]; then
|
|
echo "ERROR: $BINARY could not be found!"
|
|
exit 1
|
|
fi
|
|
|
|
mono "${MONO_ARGS[@]}" "$BINARY"
|