mirror of
https://github.com/GlowstoneMC/Glowstone
synced 2026-08-19 08:23:05 -04:00
* fix lombok version being set as the project version * implement maven publish * fix JAR name containing versions and -all for main JAR * update gradle * update JDK to 17 (LTS) * move to adoptium JDK (latest vendor-neutral JDK) * update gradle cache to consider lib versions * update various github action versions * update various paths to gradle equivalents * fix lib versions being inconsistent
20 lines
422 B
Bash
Executable file
20 lines
422 B
Bash
Executable file
#!/bin/bash
|
|
# Run script within the directory
|
|
BINDIR=$(dirname "$(readlink -fn "$0")")
|
|
cd "$BINDIR"
|
|
|
|
# Build or just do a straight run?
|
|
if [ "$1" != "run" ];
|
|
then
|
|
# Build
|
|
./build.sh
|
|
fi
|
|
# Check if Maven built successfully
|
|
# or if we didn't build, just run
|
|
if [ $? -eq 0 ] || [ "$1" == "run" ];
|
|
then
|
|
# Run Glowstone
|
|
(cd ../build/libs && ../../scripts/start.sh)
|
|
else
|
|
echo "Glowstone did not build successfully."
|
|
fi
|