Files
Cards-Gate/scripts/install.sh
2025-12-01 11:42:13 +01:00

23 lines
450 B
Bash
Executable File

#!/bin/bash
set -e
VERSION="2.13.1"
URL="https://search.maven.org/remotecontent?filepath=com/google/code/gson/gson/2.13.1/gson-2.13.1.jar"
LIB_DIR="./lib"
JAR_PATH="${LIB_DIR}/gson-${VERSIO}N.jar"
mkdir -p "$LIB_DIR"
if [ -f "$JAR_PATH" ]; then
echo "gson-${VERSION}.jar already exists"
else
echo "gson-${VERSION}.jar herunter"
curl -L "$URL" -o "$JAR_PATH"
echo "Download succesfull"
fi
echo "Installation done. You can now run build.sh"