wails: The wait build - ldflags "- H windowsgui" command is invalid

##################################################### If you have a technical issue, please do not open a bug this way! Please use the wails issue command!
#####################################################

Description Run the wails build -ldflags "-H windowsgui" command to package the application But starting an external application will still have an extra black window | 运行wails build -ldflags "-H windowsgui"命令打包应用程序 但是仍然会有一个多余的黑色窗口

To Reproduce Steps to reproduce the behaviour:

  1. wails Init
  2. wails build -ldflags “-H windowsgui”

Expected behaviour When launching external applications, I don’t want to have an extra window | 启动外部应用程序的时候,我不希望有一个多余的窗口

Screenshots image

System Details Go 1.14.4 Wails v1.8.0 OS Windows 10

Additional context I think this is not an error. It should be my improper operation. However, I operate according to the method of using v1.8.0 as required in the document.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (16 by maintainers)

Most upvoted comments

Unsure how you compiled that program but it would seem the issue with the extra window is the program you are running. If you run client.exe all by itself on the command-line does it not open a window?

Sorry @misitebao - this isn’t a wails problem.

Surely that’s a problem with compiling your app? I’m a little lost tbh. It looks like your command.Exec is opening that window.

Is the client.exe another wails app? What creates that binary?