fix(ci): replace jq with python3 in update-manifest (jq not in node:20-bookworm)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user