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 ability to hide console window #4

Open
Simon-Davies opened this issue Mar 13, 2022 · 5 comments
Open

Add ability to hide console window #4

Simon-Davies opened this issue Mar 13, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@Simon-Davies
Copy link

Can you please add the ability to hide the console window using the compiler flag: --app:gui

@moloch-- moloch-- added the enhancement New feature or request label Mar 13, 2022
@Simon-Davies
Copy link
Author

Simon-Davies commented Mar 21, 2022

Any updates on this? I was looking through the code and saw a place where it looks like the Nim compiler flags are set.

@moloch--
Copy link
Owner

Send me a PR and I'll take a look!

@Simon-Davies
Copy link
Author

Simon-Davies commented Mar 21, 2022

Could it be added to this part in pkg/nim/nim.go? I may be wrong but I see the Nim compiler "compile" command here:

// Compile - Nim compiler command func Compile(workDir string, env []string, args []string) ([]byte, []byte, error) { cli := []string{"compile"} cli = append(cli, args...) return nimCmd(workDir, env, cli) }

@moloch--
Copy link
Owner

Yea that's building the nim compile command, fork the code and play around see if you can get it working! I'm busy with other projects so no ETA for me working on this btw.

@TaxMachine
Copy link

@Simon-Davies I think you can use your own config.nims in your project to specify your own flags

switch("app", "gui")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants