bb64 release v26

This commit is contained in:
Your Name 2025-05-12 22:02:56 +12:00
parent 8b184a524f
commit 7081615a98
2 changed files with 18 additions and 9 deletions

View File

@ -76,15 +76,24 @@ if [ -z "$RELEASE_ID" ]; then
exit 1 exit 1
fi fi
# Upload binaries # Upload binaries and install.sh
for BIN in bb64.amd64 bb64.arm64; do for FILE in bb64.amd64 bb64.arm64 install.sh; do
if [ -f "output/$BIN" ]; then if [ -f "output/$FILE" ]; then
curl -s -X POST "$API_URL/releases/$RELEASE_ID/assets?name=$BIN" \ filetoupload="output/$FILE"
-H "Content-Type: application/octet-stream" \ elif [ -f "$FILE" ]; then
-H "Authorization: token $TOKEN" \ filetoupload="$FILE"
--data-binary @"output/$BIN" else
echo "Uploaded $BIN to release $TAG." continue
fi fi
# Auto-detect content type
ctype=$(file --mime-type -b "$filetoupload")
curl -s -X POST "$API_URL/releases/$RELEASE_ID/assets?name=$FILE" \
-H "Content-Type: $ctype" \
-H "Authorization: token $TOKEN" \
--data-binary @"$filetoupload"
echo "Uploaded $FILE to release $TAG as $ctype."
done done
echo "Published bb64 version $v to $REPO_URL (tag $TAG) with binaries." echo "Published bb64 version $v to $REPO_URL (tag $TAG) with binaries."

View File

@ -1 +1 @@
static const char *VERSION = "25"; static const char *VERSION = "26";