From 7c77c8e850e151aea56559b2970f8d52be550766 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Wed, 10 Jun 2026 11:17:52 -0400 Subject: [PATCH] fix(ci): replace jq with python3 in update-manifest (jq not in node:20-bookworm) Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/release.yml | 29 +++++++++++++---------------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 5eec231..2018a87 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -189,22 +189,19 @@ jobs: VERSION=$(echo "$RELEASE" | python3 -c "import sys,json; print(json.load(sys.stdin)['name'].split()[-1])") DATE=$(date -u +%Y-%m-%dT%H:%M:%SZ) - jq -n \ - --arg version "$VERSION" \ - --arg date "$DATE" \ - --arg win_url "$BASE/LotusChat-x86_64-setup.nsis.zip" \ - --arg win_sig "$WIN_SIG" \ - --arg lin_url "$BASE/LotusChat-x86_64.AppImage.tar.gz" \ - --arg lin_sig "$LIN_SIG" \ - '{ - version: $version, - notes: "Latest Lotus Chat release", - pub_date: $date, - platforms: { - "windows-x86_64": { url: $win_url, signature: $win_sig }, - "linux-x86_64": { url: $lin_url, signature: $lin_sig } - } - }' > release.json + python3 -c " +import json, sys +win_sig, lin_sig = sys.argv[1], sys.argv[2] +print(json.dumps({ + 'version': '$VERSION', + 'notes': 'Latest Lotus Chat release', + 'pub_date': '$DATE', + 'platforms': { + 'windows-x86_64': {'url': '$BASE/LotusChat-x86_64-setup.nsis.zip', 'signature': win_sig}, + 'linux-x86_64': {'url': '$BASE/LotusChat-x86_64.AppImage.tar.gz', 'signature': lin_sig} + } +}, indent=2)) +" "$WIN_SIG" "$LIN_SIG" > release.json cat release.json