zserge / lorca

Build cross-platform modern desktop apps in Go + HTML5
MIT License
8.04k stars 535 forks source link

Hide Lorca's Windows command prompt #162

Closed tinwritescode closed 2 years ago

tinwritescode commented 2 years ago

image

Executing .exe file on Windows, I face with the command prompt to appear, is there anyway to hide it?(‾◡◝)

tinwritescode commented 2 years ago

Found solution: https://stackoverflow.com/a/31153860/12490482

Use

go build -ldflags "-H windowsgui"