Commit graph

4 commits

Author SHA1 Message Date
kite
75f1ddc295 fix(publish): treat git tag as sole version source, no commit produced
- Remove sync_version step and post-publish version bump commit
- Version is now injected temporarily into package.json during publish
  and restored afterward (same approach as CI workflow)
- Set package.json version to 0.0.0 as inert placeholder
- Add export to .env.example so variables propagate to child processes
- Simplify patch_package_json by removing dead code branches
2026-05-22 17:17:44 +08:00
kite
d2c6f616c7 feat: add async background auto-update mechanism
When users run any ocr command, the Node.js shim spawns a detached
background process that checks GitHub Releases for newer versions and
atomically replaces the binary. This ensures users stay on recent
versions without blocking their current command execution.

- Cooldown: checks at most once per hour (configurable via OCR_UPDATE_INTERVAL)
- Disable: set OCR_NO_UPDATE=1 to skip entirely
- Safety: PID lock prevents concurrent updates, SHA-256 checksum verification,
  atomic rename ensures running processes are unaffected
2026-05-22 16:15:51 +08:00
kite
ce9511eed6 feat: add environment-driven publish scripts for single-branch workflow
Add generic publish pipeline that supports both internal and external
publishing via environment variables, without leaking any internal URLs
or tool references into the public repository.
2026-05-21 17:33:46 +08:00
kite
7c8b8562aa feat: init 2026-05-20 22:03:52 +08:00