fix(install): prioritize compressed archives with raw binary fallback and auto-extraction

This commit is contained in:
gitea committed 2026-09-18 11:41:07 +08:00
1 parent 8c444efc85
commit aa5ec6b6ce
2 files changed
+64 -19

No files matched your search

+1 -1
View File
@@ -113,7 +113,7 @@ jobs:
local filename
filename=$(basename "$file")
echo " [start] Uploading ${filename} to Gitea..."
RESP=$(curl -s -m 120 -w "\nHTTP_STATUS:%{http_code}" -X POST "${GITEA_HOST}/api/v1/repos/${GITEA_REPO}/releases/${RELEASE_ID}/assets?name=${filename}" \
RESP=$(curl -s -m 600 -w "\nHTTP_STATUS:%{http_code}" -X POST "${GITEA_HOST}/api/v1/repos/${GITEA_REPO}/releases/${RELEASE_ID}/assets?name=${filename}" \
-H "Authorization: token ${GITEA_TOKEN}" \
-F "attachment=@${file}")
STATUS=$(echo "$RESP" | tail -n 1)