Skip to content

Windows host: bat spawn, dialogs, and BEAM restart - #6

Merged
dominicletz merged 1 commit into
masterfrom
windows/host-packaging-fixes
Aug 26, 2026
Merged

Windows host: bat spawn, dialogs, and BEAM restart#6
dominicletz merged 1 commit into
masterfrom
windows/host-packaging-fixes

Conversation

@dominicletz

Copy link
Copy Markdown
Contributor

Summary

  • Spawn Mix release .bat scripts via cmd.exe /c and prefer .bat when discovering beam/bin.
  • Implement Win32 dialog.choose_file / choose_directory (IFileOpenDialog) and dialog.prompt.
  • Add host-driven restart_beam (process wait + backoff) and system.prepare_quit so packaged updates work without heart.
  • Harden scripts/build_windows.ps1 to run under vcvars via cmd.exe.

Test plan

  • .\scripts\build_windows.ps1 builds priv/native/windows/DesktopWebView.exe
  • Host E2E (mix test test/e2e) on Windows
  • Packaged host with DesktopWebView.ini spawns beam/bin/<app>.bat start
  • File/dir/prompt dialogs return paths/values or cancel as null
  • Killing BEAM with restart_beam=true respawns; system.prepare_quit does not

Packaged host-first needs CreateProcess via cmd.exe for Mix .bat
scripts, Win32 file/prompt dialogs for DesktopWebview.Dialog, and
host-driven restart_beam so updates work without heart.
@dominicletz
dominicletz merged commit 8626989 into master Aug 26, 2026
4 checks passed
@dominicletz
dominicletz deleted the windows/host-packaging-fixes branch August 26, 2026 11:50
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.

1 participant