Gruppe-02-clone/Projekte/monopoly/run-mac.sh

17 lines
787 B
Bash
Raw Normal View History

2024-11-12 14:53:04 +01:00
#!/bin/bash
# Starts the server and two clients in different terminal windows on MacOS
# export JAVA_OPTS="-Duser.language=fr -Duser.region=FR -Djava.util.logging.config.file=logging.properties"
# export JAVA_OPTS="-Duser.language=en -Duser.region=US -Djava.util.logging.config.file=logging.properties"
export JAVA_OPTS="-Djava.util.logging.config.file=logging.properties"
export CWD=`pwd`/`dirname $0`
cd $CWD/..
./gradlew installDist
osascript -e "tell app \"Terminal\" to do script \"cd $CWD/server; build/install/monopoly-server/bin/monopoly-server\""
sleep 2
osascript -e "tell app \"Terminal\" to do script \"cd $CWD/client; build/install/monopoly/bin/monopoly\""
sleep 2
osascript -e "tell app \"Terminal\" to do script \"cd $CWD/client; build/install/monopoly/bin/monopoly\""