diff --git a/setupSingleBinary.sh b/setupSingleBinary.sh index 0daa430..92419f2 100644 --- a/setupSingleBinary.sh +++ b/setupSingleBinary.sh @@ -39,11 +39,12 @@ WantedBy=multi-user.target EOF ARCH="$(uname -m)" +LATEST_RELEASE="$(curl -s https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/latest | jq -r '.tag_name')" if [ "$ARCH" = "x86_64" ]; then - wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/v1.0.0/wolServer-x86_64 + wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/"$LATEST_RELEASE"/wolServer-x86_64 elif [ "$ARCH" = "aarch64" ]; then - wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/v1.0.0/wolServer-arm + wget -O app/wolServer https://git.konsthol.eu/konsthol/WOL-Ly/releases/download/"$LATEST_RELEASE"/wolServer-arm fi chmod +x app/wolServer