-
Checklist
DescriptionBy following the instruction:
built the application with the console attached. It also has a size of 33,9 MB instead of release 18,0 MB. Rymdport version3.3.2 Operating SystemWindows Operating System VersionWindows 10 Go Compiler Version1.20.2 Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
This is just Windows being silly with their defaults. In order to not build with a console attached, you need to pass |
Beta Was this translation helpful? Give feedback.
This is just Windows being silly with their defaults.
In order to not build with a console attached, you need to pass
-H=windowsgui
to the ldflags when building (go build -ldflags="-H=windowsgui"
). Release builds want to pass-s -w
to the ldflags (-ldflags="-s -w"
). If you want both, you can add them both to the ldflags (it is the same for all Go applications and all Windows binaries require the flag to not open a console). It might be simpler to just use thefyne
command to package and install per https://developer.fyne.io/started/packaging.