Fix client-side designation (#32)

* The developer says its client only.

* Minor correction to the mod name

* Should be client only.

* Disable asyncRecipeSearching due to several breaking bugs in the current implementation.

* Update hashes

* Fix server script to point to the correct pack.toml

* Corrected the start.sh server script.
Changes:
Will try to fallback on wget if curl is not found.
Use the -p flag on mkdir so it won't error on
already existing directories

* Fixed forgotten cURL flag

* Added start.ps1 script for Powershell users.
It currently differs significantly from start.sh:
- It pulls FindMe from modrinth by using their API
so as to avoid having to hardcode the location
- It will pull in the latest packwiz bootstrap
from gh releases to avoid hardcoding the location
- It cleans up after itself
- It allows the user to accept the MC EULA from
within the script itself

The 3 variables at the top will need to be
updated to match the expected versions every time
those are altered.

I don't think I'll be able to replicate this
functionality in bash as I'm not as familiar
but I'm sure someone else will rise to the
challenge.

* Corrected the modrinth qs for findme
This commit is contained in:
Sophia
2024-02-27 04:26:31 +02:00
committed by GitHub
parent e8dd7c67a5
commit 77b5e9597a
8 changed files with 171 additions and 34 deletions

View File

@@ -2,33 +2,42 @@
FORGE_VERSION=1.20.1-47.1.84
# Ensure java is installed\
# 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
# Function to download with either curl or wget
download() {
if command -v curl >/dev/null 2>&1; then
curl -OJL "$1"
elif command -v wget >/dev/null 2>&1; then
wget "$1"
else
echo "Neither curl nor wget found. Please install either curl or wget."
exit 1
fi
}
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
# Install (Neo)Forge
if [ ! -f forge-$FORGE_VERSION-installer.jar ]; then
download "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
mkdir -p mods
download "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
# 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
download "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 -jar packwiz-installer-bootstrap.jar -g -s server https://raw.githubusercontent.com/GregTechCEu/GregTech-Modern-Community-Pack/main/pack.toml
java @user_jvm_args.txt @libraries/net/neoforged/forge/$FORGE_VERSION/unix_args.txt nogui
java @user_jvm_args.txt @libraries/net/neoforged/forge/$FORGE_VERSION/unix_args.txt nogui