commit a32d70465263f903bbb20ca06e3d3f655f49d414 parent 2ccedd7c424cdd9520206791e2b56cc136fa943a Author: typable <contact@typable.dev> Date: Sat, 7 Sep 2024 00:01:57 +0200 fix: Fixed build script error on Windows #3 Diffstat:
M | build.sh | | | 10 | +++++++++- |
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/build.sh b/build.sh @@ -1,4 +1,12 @@ #!/bin/sh -javac -cp "./libs/bungeecord-chat-1.20-R0.2.jar:./libs/spigot-api-1.21.1-R0.1-20240831.215322-16.jar" src/poppy/*.java src/poppy/modules/*.java -d build + +if [[ "$OSTYPE" == "linux-gnu" || "$OSTYPE" == "darwin" ]]; then + cpdl=":" +else + cpdl=";" +fi + + +javac -cp "./libs/bungeecord-chat-1.20-R0.2.jar${cpdl}./libs/spigot-api-1.21.1-R0.1-20240831.215322-16.jar" src/poppy/*.java src/poppy/modules/*.java -d build jar cvfm poppy.jar res/MANIFEST.MF -C res plugin.yml -C build poppy rm -rf ./build