Skip to content

fix(varlock): install Windows encrypt helper on WSL via install.sh#896

Open
WalksWithASwagger wants to merge 1 commit into
dmno-dev:mainfrom
WalksWithASwagger:fix-install-wsl-encrypt-exe
Open

fix(varlock): install Windows encrypt helper on WSL via install.sh#896
WalksWithASwagger wants to merge 1 commit into
dmno-dev:mainfrom
WalksWithASwagger:fix-install-wsl-encrypt-exe

Conversation

@WalksWithASwagger

Copy link
Copy Markdown

Summary

  • Linux standalone archives already bundle varlock-local-encrypt.exe for WSL2; install.sh now installs it when WSL is detected.
  • Non-WSL Linux still always gets varlock-local-encrypt (fixes the regression in Add WSL detection to install script #895's current approach).
  • Adds --skip-win-exe to opt out of the Windows helper on WSL.
  • Documents the behavior in the local encryption guide.

Related: #895 (same intent; this avoids gating the Linux helper on WSL/.exe presence)

Test plan

  • sh -n packages/varlock/install.sh
  • is_wsl false on macOS; true when WSL_DISTRO_NAME is set
  • On WSL: curl -sSfL … | sh -s -- --force-no-brew installs both helpers; varlock encrypt resolves Windows TPM backend
  • On non-WSL Linux: Linux helper still installed; no .exe required
  • On WSL with --skip-win-exe: Linux helper only

Linux release archives already ship varlock-local-encrypt.exe for WSL2.
Install it when WSL is detected, while always keeping the Linux helper for
non-WSL Linux. Adds --skip-win-exe to opt out.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants