From 63b47cc852dc6e56cc8aaf5020b716adb1469c8e Mon Sep 17 00:00:00 2001 From: Antonio Cheong Date: Sun, 24 Jul 2022 20:12:45 +0800 Subject: [PATCH] Generalize manual compile steps (#1644) `go build -tags desktop,production -ldflags "-w -s -H windowsgui"` returns an error on MacOS/Linux. It is referenced in Wails CLI that manually only `-w -s` are passed by default. --- .../version-v2.0.0-beta.40/guides/manual-builds.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/versioned_docs/version-v2.0.0-beta.40/guides/manual-builds.mdx b/website/versioned_docs/version-v2.0.0-beta.40/guides/manual-builds.mdx index e3be40d0b..19f2d7ccf 100644 --- a/website/versioned_docs/version-v2.0.0-beta.40/guides/manual-builds.mdx +++ b/website/versioned_docs/version-v2.0.0-beta.40/guides/manual-builds.mdx @@ -84,7 +84,7 @@ This step could be done from the command line or a script with `npm run build` o #### Manual steps - For dev build, the minimum command would be: `go build -tags dev -gcflags "all=-N -l"` -- For production build, the minimum command would be: `go build -tags desktop,production -ldflags "-w -s -H windowsgui"` +- For production build, the minimum command would be: `go build -tags desktop,production -ldflags "-w -s"`. Add `-H windowsgui` to `ldflags` on Windows - Ensure that you compile in the same directory as the `.syso` file ### Compress application