Commit 16cfab82 authored by Maksim's avatar Maksim

adapt run script for windows: add ability to run .bat file

parent f2e35572
...@@ -15,4 +15,14 @@ done ...@@ -15,4 +15,14 @@ done
base_dir=$(cd "`dirname "$loc"`" && pwd) base_dir=$(cd "`dirname "$loc"`" && pwd)
"$base_dir/build" "$base_dir/build"
exec "$base_dir/target/start" "$@"
# Determine os version and choose correspondent .sh or .bat file accordingly.
os_version="`uname -a`"
if [[ $os_version == *"MINGW"* ]]; then
echo "It's Windows MINGW!"
cmd //C "$base_dir/target/start.bat" "$@"
else
echo "It's Linux or Mac OS!"
exec "$base_dir/target/start" "$@"
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment