-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
Allow disabling gui at compile time #260
Allow disabling gui at compile time #260
Conversation
d648bcc
to
ab21b88
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not do code review, but nice work. I can test this in two days when I'm home.
We definitely should discuss how this might work with releases... having two executables, one with gui, one without, is kinda weird. Maybe this shouldn't be a compile feature... I don't know. Maybe the gui should live in its own repo. 🤷♂️ things to discuss I guess
Oh, this also needs CI testing. We need to ensure it compiles with and without gui. I assume that shouldn't be too hard to add into the github workflow matrix thing. |
Resolves #159 |
if this is merged i can submit a PR that will add CLI-only version to releases with the workflows |
Sounds very good to me, I'll look into this asap! :) |
A few thoughts from my side, I like this implementation and I think it makes sense to do it in this way. Sadly there seems to be no way to make this line, which suppresses the command line, optional for a single release: Line 1 in a92c5bb
That's why I'm okay with a seperate CLI only release asset, as long as it's clearly distinguishable via the asset name (e.g. "arnis-cli.exe"). |
Hmm I am not on Windows and I didn't try it there. I will check it out today and see why it's failing for windows builds. It might be the windows_subsystem line that's preventing an actual error from being printed? |
There are a few points here. 1: Your coordinates aren't generating any data, which is why it exited unsuccessfully. The output should have been:
It works if you use a different set of coordinates (for example: 2: Windows does not send anything to stdout/stderr if you use If you double click the .exe, you get the GUI. If you run 3: According to the FreeConsole and AttachConsole documentation, you can safely free if not already attached, and I don't see any warnings about using these functions, so they should be fine to use even though they have to be in an I pushed the fix to this. Everything should work now; please review again. |
Thanks a lot for your great work and sorry for catching up with it a bit late! |
Woohoo! |
Allows users to disable the GUI at compile time by using
--no-default-features