Skip to content

Windows: release builds open without a console and carry the Athas icon - #809

Open
divyanshudhruv wants to merge 1 commit into
athasdev:mainfrom
divyanshudhruv:fix/windows-console-window
Open

divyanshudhruv wants to merge 1 commit into
athasdev:mainfrom
divyanshudhruv:fix/windows-console-window

Conversation

@divyanshudhruv

@divyanshudhruv divyanshudhruv commented Nov 24, 2026 •

Copy link
Copy Markdown

TL;DR

Release builds on Windows no longer open a logging console window, and the app icon is now embedded in the exe.

Short description

Fixes #806 and #804. The Windows binary was built with the console subsystem, so launching the installed app opened a terminal that streamed logs. Closing that terminal closed the app. Release builds now use the GUI subsystem. Logs still go to Athas.log, and cargo run still prints to the terminal you started it from.

The Windows icon was not embedded in the exe, so the window and taskbar showed the generic icon. A Windows build script now embeds icon.ico as resource 1, the resource GPUI loads the app icon from.

Problems

  • Double-clicking the Windows app opened a console window with live logs.
  • Closing that console closed the app.
  • The console came from the binary subsystem, not from Athas starting extra processes.
  • The window and taskbar showed the generic Windows icon instead of the Athas logo.

What / Solution

  • Windows release binary: marked windows_subsystem = "windows" for non-debug builds.
  • Debug builds: unchanged, so cargo run still shows logs in the terminal.
  • Logs: unchanged, still written to Athas.log.
  • App icon: Windows build script embeds packaging/icons/icon.ico as resource 1 with winres.

Before / After

Media

Area Before After
Full window Before: console window with logs After: no console window
App icon image image

Summary

Area Before After
Double-click launch Console window opened with logs No console window
Closing the console Closed the app Not possible, no console
cargo run Logs in the terminal Logs in the terminal
Log file Athas.log Athas.log
App icon Generic Windows icon Athas icon

Issues

Testing

  • Release build launched from Explorer: no console window, app stays open
  • Athas icon visible in taskbar and Alt-Tab
  • I have read the Contributor License and Feedback Agreement and agree to it for this and my later contributions.

@divyanshudhruv divyanshudhruv changed the title Windows: release builds open without a console Windows: release builds open without a console and carry the Athas icon Nov 24, 2026
@divyanshudhruv
divyanshudhruv force-pushed the fix/windows-console-window branch 2 times, most recently from 03dd95d to c10607a Compare November 24, 2026 20:19
@divyanshudhruv
divyanshudhruv force-pushed the fix/windows-console-window branch from c10607a to a33473a Compare November 24, 2026 20:21
@divyanshudhruv divyanshudhruv mentioned this pull request Nov 24, 2026
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.

Logging Terminal opening with the application On windows

1 participant