From 109a2bd91eb8ce441790a55f0ce45f8c2ad28732 Mon Sep 17 00:00:00 2001 From: minglipro Date: Wed, 18 Jun 2025 21:46:11 +0800 Subject: [PATCH] add install.sh --- install.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 install.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..07adfa0 --- /dev/null +++ b/install.sh @@ -0,0 +1,12 @@ +curl -o releases.json https://git.mingliqiye.com/api/v1/repos/Actions/com.mingliqiye.gitea.releases/releases +FILENAME=$(jq -r .[0].assets[0].name releases.json) +DOWNLOADURL=$(jq -r .[0].assets[0].browser_download_url releases.json) + +echo fileName:$FILENAME +echo BrowserDownloadUrl:$DOWNLOADURL +echo Downloading ... $FILENAME + +curl -O $DOWNLOADURL + +rm releases.json +rm install.sh \ No newline at end of file