ghr 0.1.5
Fix Windows install flows: CDN downloads, zip extraction, and PyPI wheels.
Changes
- Fix duplicate
User-Agentheader: Use Zig'sheaders.user_agentoverride instead of puttingUser-Agentinextra_headers. Zig's HTTP client was emitting bothuser-agent: zig/0.16.0and the customUser-Agent: ghr/..., which Azure CDN rejected as an invalid header. Added a regression test. Fixes #28. - Fix zip extraction for Windows backslash paths: PowerShell's
Compress-Archivecreates zip entries with backslashes. Normalize path separators before matching so nested installer files resolve correctly on Windows. - Fix PyPI wheel build for Windows
.zipassets:build_wheels.pypreviously only looked for.tar.gzartifacts and returned 404 on Windows wheels. It now tries both.zipand.tar.gz.
Install:
uv tool install ghr-bin==0.1.5