From 7bc2b8bf7a9be460c5a883f8d1eea1ef068b32db Mon Sep 17 00:00:00 2001 From: Dark98 Date: Mon, 22 Aug 2022 05:44:54 +0100 Subject: [PATCH] Setup GH Actions For Windows Single-Player --- .github/workflows/maven.yml | 3 +++ SinglePlayer.bat | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 SinglePlayer.bat diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 8bdef676..030018ea 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -25,6 +25,9 @@ jobs: mkdir -p ~/artifacts cp "2006Scape Client/target/client-1.0-jar-with-dependencies.jar" ~/artifacts/Client.jar cp "2006Scape Server/target/server-1.0-jar-with-dependencies.jar" ~/artifacts/Server.jar + cp "2006Scape Server/ServerConfig.Sample.json" ~/artifacts/ServerConfig.json + cp SinglePlayer.bat ~/artifacts/ + cp -r "2006Scape Server/plugins" ~/artifacts/ cp -r "2006Scape Server/data" ~/artifacts/ - name: Publish build to GH Actions uses: actions/upload-artifact@v2 diff --git a/SinglePlayer.bat b/SinglePlayer.bat new file mode 100644 index 00000000..652db3e8 --- /dev/null +++ b/SinglePlayer.bat @@ -0,0 +1,6 @@ +:: Runs The Server & FileServer +start cmd /k java -jar Server.jar -c ServerConfig.json +:: Used To Wait 6 Seconds Before Running The Client +PING localhost -n 6 >NUL +:: Starts The Client +start cmd /k java -jar Client.jar -s localhost \ No newline at end of file