Skip to content

Windows host-first: do not install release-first erl .env - #22

Merged
dominicletz merged 5 commits into
mainfrom
windows/host-first-skip-boot-env
Sep 1, 2026
Merged

Windows host-first: do not install release-first erl .env#22
dominicletz merged 5 commits into
mainfrom
windows/host-first-skip-boot-env

Conversation

@dominicletz

Copy link
Copy Markdown
Contributor

Summary

  • For windows_layout: :host_first, skip writing rel/win32/app.env.eex onto the renamed erl executable.
  • That env embeds -boot in ERL_AFLAGS. Host-first already starts via bin/<app>.bat, which also passes -boot, so OTP exits with Conflicting -boot options and the GUI host appears to do nothing on click.

Test plan

  • Installed package with the conflicting .env fails bin/app.bat start with Conflicting -boot options
  • Removing that .env lets BEAM boot; host and endpoint connect

dominicletz and others added 4 commits September 1, 2026 11:03
Host-first starts BEAM via bin/<app>.bat, which already passes -boot.
Installing rel/win32/app.env.eex onto the renamed erl embeds a second
-boot in ERL_AFLAGS, so OTP exits with Conflicting -boot options and
the GUI host looks dead on click.

Co-authored-by: Cursor <cursoragent@cursor.com>
Skipping the write was not enough when a prior packaging left
dDrive.exe.env in erts/bin; remove it explicitly for host_first.

Co-authored-by: Cursor <cursoragent@cursor.com>
Host-first only applied Pe.Update to the renamed erts erl binary, so
Explorer/taskbar showed a blank default icon for dDrive.exe. Copy the
host then --set-icon from the release icon.ico.

Co-authored-by: Cursor <cursoragent@cursor.com>
Host-first shortcuts now use the embedded host PE icon; other icon paths
are normalized to forward slashes so CreateShortCut keeps separators.

Co-authored-by: Cursor <cursoragent@cursor.com>
@dominicletz

Copy link
Copy Markdown
Contributor Author

@cursoragent /babysit

@cursor

cursor Bot commented Sep 1, 2026

Copy link
Copy Markdown

Taking a look!

Open in Web Open in Cursor 

Extract host-first env-file sync and PE update args into helpers so
mix lint stays under the cyclomatic complexity threshold.

Co-authored-by: Dominic Letz <dominicletz@users.noreply.github.com>
@dominicletz

Copy link
Copy Markdown
Contributor Author

Babysitting update: CI was failing on a Credo cyclomatic-complexity check in copy_extra_files (10 > 9) after the host-first .env changes.

Pushed b05ada7 — extracted maybe_sync_windows_erl_env_file/3 and windows_pe_update_args/3 so mix lint should pass again. Waiting on CI.

@dominicletz

Copy link
Copy Markdown
Contributor Author

CI is green on b05ada7mix lint and the macOS keychain tests passed.

@dominicletz
dominicletz merged commit 72298aa into main Sep 1, 2026
2 checks passed
@dominicletz
dominicletz deleted the windows/host-first-skip-boot-env branch September 1, 2026 19:53
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