The postinstall script was only checking if the existing binary could
run (--help), not whether its version matched the npm package version.
This caused npm upgrades to skip downloading the new binary, leaving
users on stale versions without fixes.
Now checks `gitlink-cli version` output against package.json version.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- When exact version release not found, fallback to latest release
- Match assets by platform/arch pattern when version in filename differs
- Ensures npm install works even when release version != npm version
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
GitLink release API returns relative URLs for attachments (e.g.
/Gitlink/gitlink-cli/releases/download/...). Prepend RELEASE_BASE
to make them absolute, fixing "Invalid URL" error on Windows/Linux.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Remove bin/ directory from npm files, only include bin/cli.js wrapper
- postinstall now always downloads the correct platform binary from release
- Add platform compatibility check: if pre-existing binary doesn't match
current platform, re-download instead of silently failing
Fixes "cannot execute binary file" on Linux/Windows when npm package was
built on macOS.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add windows/amd64 and windows/arm64 to build targets with .zip packaging
- Update npm install.js: win32 platform detection, .exe binary, PowerShell zip extraction
- Update npm cli.js wrapper to append .exe on Windows
- Fix credential path to use filepath.Join for cross-platform compatibility
- Update README with Windows support docs and FAQ
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add npm package structure (package.json, install script, bin wrapper)
- Add cross-platform build script (darwin/linux × amd64/arm64)
- Add local pack script for embedding binary in npm package
- Update README with larksuite/cli-style installation docs
- Published as @gitlink-ai/cli@0.1.0 on npmjs.com
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>