Fix version.json containing invalid JSON (literal newlines in notes)

Use jq to build version.json so multiline release notes are properly
escaped as \n sequences. Also fix current version.json for v1.0.4.
This commit is contained in:
superdooper86
2026-05-07 17:22:57 +02:00
parent dd68ff39d6
commit 9c030fcdd5
2 changed files with 7 additions and 16 deletions
+6 -7
View File
@@ -50,13 +50,12 @@ jobs:
- name: Update version.json - name: Update version.json
run: | run: |
cat > version.json << JSON notes=$(cat RELEASE_NOTES.md 2>/dev/null || echo "Release ${{ steps.version.outputs.version }}")
{ jq -n \
"version": "${{ steps.version.outputs.version }}", --arg version "${{ steps.version.outputs.version }}" \
"url": "https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/ClaudeChecker.zip", --arg url "https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/ClaudeChecker.zip" \
"notes": "$(cat RELEASE_NOTES.md 2>/dev/null || echo 'Release ${{ steps.version.outputs.version }}')" --arg notes "$notes" \
} '{version: $version, url: $url, notes: $notes}' > version.json
JSON
- name: Update Homebrew cask - name: Update Homebrew cask
run: | run: |
+1 -9
View File
@@ -1,13 +1,5 @@
{ {
"version": "1.0.4", "version": "1.0.4",
"url": "https://github.com/superdooper86/claudechecker/releases/download/v1.0.4/ClaudeChecker.zip", "url": "https://github.com/superdooper86/claudechecker/releases/download/v1.0.4/ClaudeChecker.zip",
"notes": "## What's new in v1.0.4 "notes": "## What's new in v1.0.4\n\n### Clickable notifications\nNotifications are now interactive — tap to act, not just read:\n\n- **Limit warnings & resets** (80%, 95%, reset) — tapping the notification opens the main ClaudeChecker window so you can see your current usage at a glance\n- **Update available** — tapping the notification opens the main window with the update sheet already showing, so you can install in one click\n\nPreviously notifications were display-only and required manually clicking the menubar icon to take action. This removes that friction."
### Clickable notifications
Notifications are now interactive — tap to act, not just read:
- **Limit warnings & resets** (80%, 95%, reset) — tapping the notification opens the main ClaudeChecker window so you can see your current usage at a glance
- **Update available** — tapping the notification opens the main window with the update sheet already showing, so you can install in one click
Previously notifications were display-only and required manually clicking the menubar icon to take action. This removes that friction."
} }