This document is the canonical release checklist for zago.
The current builds are preview builds for friends and early testers who are comfortable with terminal tools and can build Swift packages locally.
Good first testers:
- write Markdown, Org, reStructuredText, or AsciiDoc notes
- care about CJK and emoji terminal alignment
- are comfortable reporting exact terminal, OS, and reproduction steps
- can tolerate rough edges while the editor stabilizes
- macOS 14.0 or later
- Linux with Swift 6.0 or later
- VT100 / ANSI-compatible terminal
- On Windows, prefer Windows Terminal or another VT-enabled console, and verify the console is using UTF-8 input/output (disable
Ctrl+Shift+UpandCtrl+Shift+Downin Settings -> Actions if they conflict with Canvas Mode arrow drawing)
Known-good terminal behavior should be checked on:
- macOS Terminal.app
- iTerm2
- kitty
- WezTerm
- common Linux terminal emulators
Unicode display width can vary by terminal. Test CJK, emoji, menu overlays, tables, and canvas blocks before calling a build ready.
Clone and build:
git clone https://github.com/zonble/zago.git
cd zago
./build.sh
zago --versionBy default this installs to:
/usr/local/bin/zago
Install somewhere else:
PREFIX="$HOME/.local" ./build.shThen make sure the install path is in PATH:
export PATH="$HOME/.local/bin:$PATH"Build without installing:
swift build -c release
.build/release/zago notes.mdOn macOS, build.sh builds a universal release binary and applies ad-hoc code signing. To skip signing:
SIGN=0 ./build.shUsers can install with:
brew tap zonble/zago
brew tap --trust zonble/zago # allow this third-party tap
brew install zago
zago --versionIf Homebrew refuses to use the third-party tap, run:
brew tap-info zonble/zago
brew tap --trust zonble/zago # allow this third-party tap
brew install zagoTap maintenance is documented in Homebrew Tap.
On Linux, the Homebrew formula depends on Homebrew's swift package at build time. For non-Homebrew Linux installs, use Swift 6 from the distribution or Swift.org and build from source.
Before starting, choose the release version:
X.Y.Z
For example:
1.0.4
Use the corresponding tag name everywhere:
vX.Y.Z
Before sharing a build, run:
swift test
swift build -c release --product zago
.build\x86_64-unknown-windows-msvc\release\zago.exe --versionOn macOS or Linux, the release binary path is usually:
.build/release/zago --versionFor install-script validation on macOS/Linux, also run:
./build.sh
zago --versionThen manually smoke-test:
- open, edit, save, and reopen a Markdown file
- paste CJK text and emoji such as
❌❌❌❌❌ - resize the terminal window and verify the editor redraws automatically
- open the menu over lines containing wide characters
- toggle Canvas Mode with
M+V - create and edit a simple table
- run a small LOGO command from the prompt
- run a headless command such as
zago -e 'BOX 20 4'
- Update
Sources/Config/ZagoVersion.swift. - Update
CHANGELOG.md. - Update any version-specific tests.
- Run the local validation commands above.
- Commit the release changes:
git status --short
git add CHANGELOG.md Sources/Config/ZagoVersion.swift Tests/ConfigAndToolsTests.swift docs/development/release.md docs/development/homebrew_tap.md
git commit -m "Release X.Y.Z"- Create and push the tag:
git tag vX.Y.Z
git push origin main
git push origin vX.Y.Z- Convert the tag into a GitHub Release:
cat > release-notes-X.Y.Z.md <<'EOF'
Windows terminal redraw fix release.
### Fixed
- Windows terminal resize events now trigger an automatic full-screen redraw without waiting for the next keypress.
EOF
gh release create vX.Y.Z \
--title "zago X.Y.Z" \
--notes-file release-notes-X.Y.Z.md \
--latestIf gh is unavailable, use GitHub's web UI:
-
Open
https://github.com/zonble/zago/releases/new. -
Choose the existing tag
vX.Y.Z. -
Set the release title to
zago X.Y.Z. -
Copy the
CHANGELOG.mdsection forX.Y.Zinto the release notes. -
Publish the release.
-
Calculate the GitHub tag archive checksum:
curl -L https://github.com/zonble/zago/archive/refs/tags/vX.Y.Z.tar.gz | shasum -a 256PowerShell alternative:
$version = "X.Y.Z"
$archive = "$env:TEMP\zago-v$version.tar.gz"
Invoke-WebRequest -UseBasicParsing `
-Uri "https://github.com/zonble/zago/archive/refs/tags/v$version.tar.gz" `
-OutFile $archive
Get-FileHash -Algorithm SHA256 $archive- Update the Homebrew formula template and tap formula:
url "https://github.com/zonble/zago/archive/refs/tags/vX.Y.Z.tar.gz"
sha256 "<sha256>"- In the tap repository, validate and push the formula:
brew install --build-from-source Formula/zago.rb
brew test zago
brew audit --strict Formula/zago.rb
brew style Formula/zago.rb
git add Formula/zago.rb
git commit -m "zago X.Y.Z"
git push origin main- Share install instructions and known limitations with testers.
Use only the changelog section for the released version, not the entire changelog.
For 1.0.4, the release notes should be:
Windows terminal redraw fix release.
### Fixed
- Windows terminal resize events now trigger an automatic full-screen redraw without waiting for the next keypress.Ask testers to include:
- zago version:
zago --version - install method: Mint, source build, or copied binary
- OS and terminal app
- shell and locale:
echo $SHELL,locale - whether line numbers, ruler, syntax highlighting, or sub-line numbers were enabled
- exact text sample, especially for Unicode alignment bugs
- screenshot or short terminal recording when layout is involved
Useful Unicode layout samples:
中文中文中文
❌❌❌❌❌
❤️❤️❤️
A❌B
│❌ │
- Terminal Unicode width is pragmatic, not mathematically universal. Some terminals may render specific emoji differently.
- Mouse support is not a release goal.
- The document outline supports Markdown, Org, reStructuredText, and AsciiDoc only.
- Embedded syntax highlighting is intentionally single-level.
- The editor is still optimized for technical writers who are comfortable with keyboard-driven terminal workflows.