mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
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.
This commit is contained in:
parent
ebb76d85ed
commit
63b47cc852
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue