Upgrade velocity
Some checks failed
ci/woodpecker/push/build Pipeline failed

This commit is contained in:
Ryan Voots 2024-07-31 09:09:25 -04:00
parent acc325acf9
commit 2f149e5c49

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
curl 'https://papermc.io/api/v2/projects/velocity/version_group/3.0.0/builds' -H 'User-Agent: docker-build simcop2387@simcop2387.info' | jq -r '.builds[-1]' | tee /tmp/velocity.json curl 'https://papermc.io/api/v2/projects/velocity/version_group/3.3.0/builds' -H 'User-Agent: docker-build simcop2387@simcop2387.info' | jq -r '.builds[-1]' | tee /tmp/velocity.json
wget -O /tmp/velocity.jar $(jq -r '"https://papermc.io/api/v2/projects/velocity/versions/"+(.version|tostring)+"/builds/"+(.build|tostring)+"/downloads/"+ (.downloads.application.name|tostring)' < /tmp/velocity.json) wget -O /tmp/velocity.jar $(jq -r '"https://papermc.io/api/v2/projects/velocity/versions/"+(.version|tostring)+"/builds/"+(.build|tostring)+"/downloads/"+ (.downloads.application.name|tostring)' < /tmp/velocity.json)
CALCULATED=$(sha256sum /tmp/velocity.jar | cut -d' ' -f1) CALCULATED=$(sha256sum /tmp/velocity.jar | cut -d' ' -f1)
PROVIDED=$(jq -r '.downloads.application.sha256' < /tmp/velocity.json) PROVIDED=$(jq -r '.downloads.application.sha256' < /tmp/velocity.json)