Skip to content

Commit 9fd4b47

Browse files
committed
Setup GH Actions For Windows Single-Player
1 parent 5dea59f commit 9fd4b47

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/maven.yml

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
mkdir -p ~/artifacts
2626
cp "2006Scape Client/target/client-1.0-jar-with-dependencies.jar" ~/artifacts/Client.jar
2727
cp "2006Scape Server/target/server-1.0-jar-with-dependencies.jar" ~/artifacts/Server.jar
28+
cp "2006Scape Server/ServerConfig.Sample.json" ~/artifacts/ServerConfig.json
29+
cp SinglePlayer.bat ~/artifacts/
30+
cp -r "2006Scape Server/plugins" ~/artifacts/
2831
cp -r "2006Scape Server/data" ~/artifacts/
2932
- name: Publish build to GH Actions
3033
uses: actions/upload-artifact@v2

SinglePlayer.bat

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
:: Runs The Server & FileServer
2+
start cmd /k java -jar Server.jar -c ServerConfig.json
3+
:: Used To Wait 6 Seconds Before Running The Client
4+
PING localhost -n 6 >NUL
5+
:: Starts The Client
6+
start cmd /k java -jar Client.jar -s localhost

0 commit comments

Comments
 (0)