change app icon

This commit is contained in:
agent 2026-09-13 21:23:27 -04:00
commit 7ad3679b51
No known key found for this signature in database
5 changed files with 405 additions and 1 deletions

View file

@ -21,7 +21,11 @@ api_curl() {
}
auth_json() {
<<<<<<< Updated upstream
api_curl -u "sirius:${FORGEJO_TOKEN}" -H "Content-Type: application/json" "$@"
=======
api_curl -u "sirius:${FORGEJO_TOKEN}" -H "Content-Type: application/json" "$@" | sed 's/\r$//'
>>>>>>> Stashed changes
}
tag="${1:?usage: publish-release.sh <tag> <name> <body-file> <asset>...}"
@ -126,8 +130,12 @@ for a in json.load(sys.stdin):
fi
done
up=$(api_curl -o /tmp/release-asset.json -w '%{http_code}' \
<<<<<<< Updated upstream
-X POST "$api/releases/$rid/assets?name=$asset" \
-u "sirius:${FORGEJO_TOKEN}" \
=======
-X POST -u "sirius:${FORGEJO_TOKEN}" "$api/releases/$rid/assets?name=$asset" \
>>>>>>> Stashed changes
-F "attachment=@$f")
if [ "$up" != "201" ]; then
die_http "upload $asset" "$up" /tmp/release-asset.json