Skip to content

Commit 3731146

Browse files
robertmetaclaude
andcommitted
Version 4.3.2: Fix release notes markdown formatting
Fix code block rendering in GitHub releases: - Remove escaped backticks (not needed in single-quoted heredoc) - Change language identifier from 'elisp' to 'emacs-lisp' - Add blank lines before code blocks for proper rendering - Use placeholders instead of shell variables in heredoc - Add debug output to show generated release notes The code blocks should now render correctly on the release page. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
1 parent 46ab653 commit 3731146

2 files changed

Lines changed: 48 additions & 42 deletions

File tree

.github/workflows/release.yml

Lines changed: 47 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -108,65 +108,71 @@ jobs:
108108
fi
109109
110110
# Create release notes
111-
cat > RELEASE_NOTES.md <<'EOF'
112-
## SwiftMac ${VERSION}
111+
cat > RELEASE_NOTES.md <<'NOTES_EOF'
112+
## SwiftMac VERSION_PLACEHOLDER
113113

114-
**Apple Silicon Release** (arm64)
114+
**Apple Silicon Release** (arm64)
115115

116-
### Requirements
116+
### Requirements
117117

118-
- macOS with Apple Silicon (M1, M2, M3, M4, or newer)
119-
- Emacspeak installed
118+
- macOS with Apple Silicon (M1, M2, M3, M4, or newer)
119+
- Emacspeak installed
120120

121-
### Installation
121+
### Installation
122122

123-
1. **Download and extract:**
124-
\`\`\`bash
125-
curl -L https://github.com/robertmeta/swiftmac/releases/download/v${VERSION}/swiftmac-${VERSION}.tar.gz | tar xz
126-
cd swiftmac
127-
\`\`\`
123+
**1. Download and extract:**
128124

129-
2. **Install to Emacspeak:**
130-
\`\`\`bash
131-
# Copy binary and frameworks
132-
cp -rf swiftmac ogg.framework vorbis.framework $EMACSPEAK_DIR/servers/
125+
```bash
126+
curl -L https://github.com/robertmeta/swiftmac/releases/download/vVERSION_PLACEHOLDER/swiftmac-VERSION_PLACEHOLDER.tar.gz | tar xz
127+
cd swiftmac
128+
```
133129

134-
# Copy support scripts
135-
cp cloud-swiftmac log-swiftmac $EMACSPEAK_DIR/servers/
130+
**2. Install to Emacspeak:**
136131

137-
# Copy voice configuration
138-
cp swiftmac-voices.el $EMACSPEAK_DIR/lisp/
132+
```bash
133+
# Copy binary and frameworks
134+
cp -rf swiftmac ogg.framework vorbis.framework $EMACSPEAK_DIR/servers/
139135
140-
# Update .servers file
141-
cd $EMACSPEAK_DIR/servers
142-
echo "swiftmac" >> .servers
143-
echo "log-swiftmac" >> .servers
144-
echo "cloud-swiftmac" >> .servers
145-
sort -u .servers -o .servers
146-
\`\`\`
136+
# Copy support scripts
137+
cp cloud-swiftmac log-swiftmac $EMACSPEAK_DIR/servers/
147138
148-
3. **Configure Emacs:**
149-
Add to your Emacs init file:
150-
\`\`\`elisp
151-
(setenv "EMACSPEAK_DIR" "/path/to/.emacspeak") ; Set your path
152-
(load-file "/path/to/.emacspeak/lisp/emacspeak-setup.el")
153-
(dtk-select-server "swiftmac")
154-
\`\`\`
139+
# Copy voice configuration
140+
cp swiftmac-voices.el $EMACSPEAK_DIR/lisp/
155141
156-
### Changes
142+
# Update .servers file
143+
cd $EMACSPEAK_DIR/servers
144+
echo "swiftmac" >> .servers
145+
echo "log-swiftmac" >> .servers
146+
echo "cloud-swiftmac" >> .servers
147+
sort -u .servers -o .servers
148+
```
157149

158-
${CHANGES}
150+
**3. Configure Emacs:**
159151

160-
---
152+
Add to your Emacs init file:
161153

162-
For more information, see the [full documentation](https://github.com/robertmeta/swiftmac).
163-
EOF
154+
```emacs-lisp
155+
(setenv "EMACSPEAK_DIR" "/path/to/.emacspeak") ; Set your path
156+
(load-file "/path/to/.emacspeak/lisp/emacspeak-setup.el")
157+
(dtk-select-server "swiftmac")
158+
```
164159

165-
# Substitute VERSION variable
166-
sed -i.bak "s/\${VERSION}/$VERSION/g" RELEASE_NOTES.md
160+
### Changes
161+
162+
CHANGES_PLACEHOLDER
163+
164+
---
165+
166+
For more information, see the [full documentation](https://github.com/robertmeta/swiftmac).
167+
NOTES_EOF
168+
169+
# Substitute variables
170+
sed -i.bak "s/VERSION_PLACEHOLDER/$VERSION/g" RELEASE_NOTES.md
171+
sed -i.bak "s|CHANGES_PLACEHOLDER|$CHANGES|g" RELEASE_NOTES.md
167172
rm RELEASE_NOTES.md.bak
168173

169174
echo "Release notes created"
175+
cat RELEASE_NOTES.md
170176

171177
- name: Create GitHub Release with gh CLI
172178
run: |

Sources/SwiftMacPackage/main.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import OggDecoder
1616
#else
1717
let debugLogger = Logger() // No-Op
1818
#endif
19-
let version = "4.3.1"
19+
let version = "4.3.2"
2020
let name = "swiftmac"
2121
var ss = StateStore() // just create new one to reset
2222

0 commit comments

Comments
 (0)