minglipro 96b726efed
All checks were successful
Gitea Actions Build / build and releases (push) Successful in 10m18s
更新 install.sh
2025-06-18 22:19:07 +08:00

26 lines
636 B
Bash

curl -o releases.json https://git.mingliqiye.com/api/v1/repos/Actions/com.mingliqiye.gitea.releases/releases
FILENAME=$(python -c "
import json;
with open('releases.json') as f:
data = json.load(f)
print(data[0]['assets'][0]['name'])
")
DOWNLOADURL=$(python -c "
import json;
with open('releases.json') as f:
data = json.load(f)
print(data[0]['assets'][0]['browser_download_url'])
")
echo "fileName:$FILENAME"
echo "BrowserDownloadUrl:$DOWNLOADURL"
echo "Downloading ... $FILENAME"
curl -O "$DOWNLOADURL"
mv "$FILENAME" com.mingliqiye.gitea.releases.jar
rm releases.json
ls
echo com.mingliqiye.gitea.releases.jar Downloaded