add build files

This commit is contained in:
Cleo
2026-05-14 16:10:55 +02:00
parent c723697dbf
commit 59e98af921
2 changed files with 68 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/bin/bash
shopt -s nullglob
if [[ -z "$SERVERPASSWORD" ]]; then
echo "Env Var SERVERPASSWORD is not set"
exit 0
fi
files=( ${SAVEDIR}/*.zip )
savefile=${files[0]}
if [[ -z "$savefile" ]]; then
echo "No .zip savefile found in save directory ${SAVEDIR}"
exit 0
fi
echo "Using savefile ${savefile}"
./ArchipelagoServer ${savefile} --port 38281 --password ${SERVERPASSWORD}
if [[ $? -eq 0 ]]; then
echo "Started Archipelago Server"
else
echo "Error: Failed to start server"
exit 0
fi