diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-06-04 15:24:00 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2022-06-04 15:34:52 +0200 |
commit | 163ef6ebdc5851cf6f5ecb4e6f046bea37877437 (patch) | |
tree | dfec89193660d947420dc4cfbeee4d6088458993 | |
parent | Translated using Weblate (Indonesian) (diff) | |
download | nheko-163ef6ebdc5851cf6f5ecb4e6f046bea37877437.tar.xz |
Try to fix flatpak upload
-rwxr-xr-x | .ci/upload-nightly-gitlab.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.ci/upload-nightly-gitlab.sh b/.ci/upload-nightly-gitlab.sh index c08857c1..4350f3ea 100755 --- a/.ci/upload-nightly-gitlab.sh +++ b/.ci/upload-nightly-gitlab.sh @@ -3,7 +3,7 @@ file="$1" fileName="nheko-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHORT_SHA}-${file##*-}" -uri=$(curl -H "Authorization: Bearer ${MATRIX_ACCESS_TOKEN}" -H "Content-Type: application/x-compressed" -X POST --data-binary "@${file}" "https://matrix.neko.dev/_matrix/media/r0/upload?filename=${fileName}" --http1.1 | python -c "import sys, json; print(json.load(sys.stdin)['content_uri'])") +uri=$(curl -H "Authorization: Bearer ${MATRIX_ACCESS_TOKEN}" -H "Content-Type: application/x-compressed" -X POST --data-binary "@${file}" "https://matrix.neko.dev/_matrix/media/r0/upload?filename=${fileName}" --http1.1 | python3 -c "import sys, json; print(json.load(sys.stdin)['content_uri'])") echo "Uploaded to ${uri}" curl -H "Authorization: Bearer ${MATRIX_ACCESS_TOKEN}" -H "Content-Type: application/json" -X PUT -d "{ \"body\": \"${fileName}\", \"filename\": \"${fileName}\", \"info\": { \"mimetype\": \"application/x-compressed\", \"size\": $(wc -c < ${file}) }, \"msgtype\": \"m.file\", \"url\": \"${uri}\" }" "https://matrix.neko.dev/_matrix/client/r0/rooms/${ROOM}/send/m.room.message/$(date +%s)" |