Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add another executable using the windows subsystem #3

Merged
merged 2 commits into from
Mar 20, 2022

Conversation

sneusse
Copy link
Contributor

@sneusse sneusse commented Mar 18, 2022

When packaging UI tools I'd like to hide the windows terminal.

This PR adds one more executable (raylua_r.exe) which will use the windows subsystem instead of the console subsystem

I'm not sure if one more executable is the right approach for the other platforms, on windows that's the only way I'm aware of.

- use the raylua_r to build executables without the console window
@TSnake41
Copy link
Owner

I like the idea, it would be more reliable than using FreeConsole from ffi to close the console right after it is made (making it almost invisible).
As for other platforms, there is no such way to hide console from showing, in fact, the creation of the terminals depends on the configuration of the system (often there is no such terminal created, and there is no reliable way to enforce one), and is not required by the process initially.
(if a terminal is required with raylib_r, it is still possible to call on Windows the ffi function AllocConsole to create a terminal)

@TSnake41 TSnake41 merged commit 1306640 into TSnake41:master Mar 20, 2022
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.

None yet

2 participants