Serverpack script (#10)

* Add serverpack / script

* Define clientside mods

* Packwiz refresh
This commit is contained in:
Spencer
2023-12-27 13:53:39 -05:00
committed by GitHub
parent 01af1168d9
commit cf2a9e8cdd
14 changed files with 57 additions and 22 deletions

34
serverpack/start.sh Normal file
View File

@@ -0,0 +1,34 @@
#!/bin/bash
FORGE_VERSION=1.20.1-47.1.84
# Ensure java is installed\
if ! command -v java >/dev/null 2>&1; then
echo "Java 17 must be installed"
exit 1
fi
#Install (Neo)Forge
if [ ! -f forge-1.20.1-47.1.84-installer.jar ]; then
curl -OJ https://maven.neoforged.net/releases/net/neoforged/forge/$FORGE_VERSION/forge-$FORGE_VERSION-installer.jar
java -jar forge-$FORGE_VERSION-installer.jar --installServer
rm run.sh run.bat
fi
# FindMe does not allow distribution on curseforge
if [ ! -f mods/findme-3.1.1-forge.jar ]; then
mkdir mods
curl https://mediafilez.forgecdn.net/files/4960/678/findme-3.1.1-forge.jar -o mods/findme-3.1.1-forge.jar
fi
#Install packwiz if needed
if [ ! -f packwiz-installer-bootstrap.jar ]; then
curl -OJL https://github.com/packwiz/packwiz-installer-bootstrap/releases/download/v0.0.3/packwiz-installer-bootstrap.jar
fi
java -jar packwiz-installer-bootstrap.jar -g -s server https://raw.githubusercontent.com/TacoMonkey11/GregTech-Modern-Community-Pack/fix-git-again/pack.toml
java @user_jvm_args.txt @libraries/net/neoforged/forge/$FORGE_VERSION/unix_args.txt nogui