Skip to content

Fix Windows executable names for Zig and ZLS#9

Merged
lispking merged 1 commit into
lispking:mainfrom
zcg:fix/windows-zls-exe-name
Apr 28, 2026
Merged

Fix Windows executable names for Zig and ZLS#9
lispking merged 1 commit into
lispking:mainfrom
zcg:fix/windows-zls-exe-name

Conversation

@zcg
Copy link
Copy Markdown
Contributor

@zcg zcg commented Apr 26, 2026

说人话: 你这个zvm在windows上下载zls没有exe后缀,这不正常,修了下

Summary

  • preserve .exe suffix for Zig, ZLS, and zvm executable paths on Windows
  • keep Linux/macOS executable names unchanged
  • install ZLS as zls.exe on Windows and clean up legacy extensionless zls only after successful copy
  • skip chmod for ZLS on Windows

- Add executableName and isWindows helpers to platform.zig
- Replace hardcoded names with platform.executableName in install, run,
  and upgrade
- Add cleanup for legacy ZLS file left by older Windows installs
- Skip chmod on Windows when installing ZLS
- Use platform-aware zig/zls/zvm paths across commands
- Clean temp directory prior to archive extraction
@lispking lispking merged commit e3ef3a9 into lispking:main Apr 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants