Fix plannotator-tui fetch for native Windows (Git Bash/MSYS/Cygwin) - #33
Conversation
The README documents Windows as a supported platform for the plugin build/link workflow, and plannotator-tui releases already ship an x86_64-pc-windows-msvc.exe asset, but fetch-plannotator-tui.sh's uname-based case statement only matched Darwin and Linux. On native Windows, the build step runs under Git Bash/MSYS, where uname -s reports MINGW64_NT-..., so the script fell into the default branch, printed a warning, and skipped the download entirely -- silently leaving the document-review pane unavailable. Add a case for MINGW64/MSYS_NT/CYGWIN x86_64 that selects the windows-msvc target and appends the .exe extension when fetching and verifying the release asset (the same sha256 verification path is reused unchanged). Verified locally: after this fix, running scripts/fetch-plannotator-tui.sh from a clean bin/ downloads and sha256-verifies the pinned release, and both bin/plannotator-tui and scripts/plannotator-tui.sh --version report the correct version.
|
Thanks for the clean writeup, but this fixes a path that never executes. The bash build entry in Native Windows install support is already in the tree as Closing since the Git Bash case will not become a supported path, but appreciated regardless, and the report is a useful signal that people are trying to use this on Windows. |
Problem
The README documents native Windows as a supported platform ("macOS, Linux, or Windows... On Windows, native Herdr plugin support is preview/best-effort"), and
plannotator-tuireleases already publish anx86_64-pc-windows-msvc.exeasset. Howeverscripts/fetch-plannotator-tui.sh'suname-based case statement only matchesDarwinandLinux:On native Windows, Herdr's plugin build step runs this script under Git Bash/MSYS, where
uname -sreportsMINGW64_NT-...(notDarwin/Linux). It falls through to the default branch, prints a warning, and exits 0 without downloading — silently leaving the document-review pane (annotate.open/annotate.last) unavailable, even though a matching release binary exists.Fix
Add a case for
MINGW64*/MSYS_NT*/CYGWIN*onx86_64that selects thex86_64-pc-windows-msvctarget and appends.exewhen fetching/verifying the asset. The existing sha256 verification againstSHA256SUMSis unchanged and reused as-is.Verification
On Windows (Git Bash), with a clean
bin/:Also confirmed
herdr plugin install plannotator/herdr-annotate --yespicks this branch up correctly and theannotate.open/annotate.lastreview pane actions work end-to-end on Windows afterward.