moloch-- / denim

Automated compiler obfuscation for nim
GNU General Public License v3.0
135 stars 22 forks source link

Add ability to hide console window #4

Open Simon-Davies opened 2 years ago

Simon-Davies commented 2 years ago

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

Simon-Davies commented 2 years ago

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-- commented 2 years ago

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

Simon-Davies commented 2 years ago

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-- commented 2 years ago

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 commented 1 year ago

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

switch("app", "gui")