mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 04:59:38 +08:00
[v2 docs] Fix changelog + cli options.
This commit is contained in:
parent
65c68301a0
commit
4f3dc1b0e1
@ -54,27 +54,32 @@ If you are unsure about a template, inspect `package.json` and `wails.json` for
|
|||||||
|
|
||||||
| Flag | Description | Default |
|
| Flag | Description | Default |
|
||||||
|:---------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------|
|
|:---------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------|
|
||||||
| -platform | Build for the given (comma delimited) [platforms](../reference/cli.mdx#platforms) eg. `windows/arm64`. Note, if you do not give the architecture, `runtime.GOARCH` is used. | platform = `GOOS` environment variable if given else `runtime.GOOS`.<br/>arch = `GOARCH` envrionment variable if given else `runtime.GOARCH`. |
|
|
||||||
| -clean | Cleans the `build/bin` directory | |
|
| -clean | Cleans the `build/bin` directory | |
|
||||||
| -compiler "compiler" | Use a different go compiler to build, eg go1.15beta1 | go |
|
| -compiler "compiler" | Use a different go compiler to build, eg go1.15beta1 | go |
|
||||||
|
| -debug | Retains debug information in the application. Allows the use of the devtools in the application window | |
|
||||||
|
| -dryrun | Prints the build command without executing it | |
|
||||||
|
| -f | Force build application | |
|
||||||
|
| -garbleargs | Arguments to pass to garble | `-literals -tiny -seed=random` |
|
||||||
| -ldflags "flags" | Additional ldflags to pass to the compiler | |
|
| -ldflags "flags" | Additional ldflags to pass to the compiler | |
|
||||||
|
| -m | Skip mod tidy before compile | |
|
||||||
| -nopackage | Do not package application | |
|
| -nopackage | Do not package application | |
|
||||||
|
| -nocolour | Disable colour in output | |
|
||||||
|
| -nosyncgomod | Do not sync go.mod with the Wails version | |
|
||||||
|
| -nsis | Generate NSIS installer for Windows |
|
||||||
| -o filename | Output filename | |
|
| -o filename | Output filename | |
|
||||||
| -s | Skip building the frontend | false |
|
| -obfuscated | Obfuscate the application using [garble](https://github.com/burrowers/garble) | |
|
||||||
| -f | Force build application | false |
|
| -platform | Build for the given (comma delimited) [platforms](../reference/cli.mdx#platforms) eg. `windows/arm64`. Note, if you do not give the architecture, `runtime.GOARCH` is used. | platform = `GOOS` environment variable if given else `runtime.GOOS`.<br/>arch = `GOARCH` envrionment variable if given else `runtime.GOARCH`. |
|
||||||
|
| -race | Build with Go's race detector | |
|
||||||
|
| -s | Skip building the frontend | |
|
||||||
|
| -skipbindings | Skip bindings generation | |
|
||||||
| -tags "extra tags" | Build tags to pass to Go compiler. Must be quoted. Space or comma (but not both) separated | |
|
| -tags "extra tags" | Build tags to pass to Go compiler. Must be quoted. Space or comma (but not both) separated | |
|
||||||
|
| -trimpath | Remove all file system paths from the resulting executable. | |
|
||||||
|
| -u | Updates your project's `go.mod` to use the same version of Wails as the CLI | |
|
||||||
| -upx | Compress final binary using "upx" | |
|
| -upx | Compress final binary using "upx" | |
|
||||||
| -upxflags | Flags to pass to upx | |
|
| -upxflags | Flags to pass to upx | |
|
||||||
| -v int | Verbosity level (0 - silent, 1 - default, 2 - verbose) | 1 |
|
| -v int | Verbosity level (0 - silent, 1 - default, 2 - verbose) | 1 |
|
||||||
| -webview2 | WebView2 installer strategy: download,embed,browser,error | download |
|
| -webview2 | WebView2 installer strategy: download,embed,browser,error | download |
|
||||||
| -u | Updates your project's `go.mod` to use the same version of Wails as the CLI | |
|
|
||||||
| -debug | Retains debug information in the application. Allows the use of the devtools in the application window | false |
|
|
||||||
| -trimpath | Remove all file system paths from the resulting executable. | false |
|
|
||||||
| -race | Build with Go's race detector | false |
|
|
||||||
| -windowsconsole | Keep the console window for Windows builds | |
|
| -windowsconsole | Keep the console window for Windows builds | |
|
||||||
| -obfuscate | Obfuscate the application using [garble](https://github.com/burrowers/garble) | false |
|
|
||||||
| -garbleargs | Arguments to pass to garble | `-literals -tiny -seed=random` |
|
|
||||||
| -nosyncgomod | Do not sync go.mod with the Wails version | false |
|
|
||||||
|
|
||||||
For a detailed description of the `webview2` flag, please refer to the [Windows](../guides/windows.mdx) Guide.
|
For a detailed description of the `webview2` flag, please refer to the [Windows](../guides/windows.mdx) Guide.
|
||||||
|
|
||||||
@ -171,29 +176,28 @@ Your system is ready for Wails development!
|
|||||||
|
|
||||||
| Flag | Description | Default |
|
| Flag | Description | Default |
|
||||||
|:-----------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------|
|
|:-----------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------|
|
||||||
|
| -appargs "args" | Arguments passed to the application in shell style | |
|
||||||
| -assetdir "./path/to/assets" | Serve assets from the given directory instead of using the provided asset FS | Value in `wails.json` |
|
| -assetdir "./path/to/assets" | Serve assets from the given directory instead of using the provided asset FS | Value in `wails.json` |
|
||||||
| -browser | Opens a browser to `http://localhost:34115` on startup | |
|
| -browser | Opens a browser to `http://localhost:34115` on startup | |
|
||||||
| -compiler "compiler" | Use a different go compiler to build, eg go1.15beta1 | go |
|
| -compiler "compiler" | Use a different go compiler to build, eg go1.15beta1 | go |
|
||||||
| -e | Extensions to trigger rebuilds (comma separated) | go |
|
|
||||||
| -reloaddirs | Additional directories to trigger reloads (comma separated) | Value in `wails.json` |
|
|
||||||
| -ldflags "flags" | Additional ldflags to pass to the compiler | |
|
|
||||||
| -tags "extra tags" | Build tags to pass to compiler (quoted and space separated) | |
|
|
||||||
| -loglevel "loglevel" | Loglevel to use - Trace, Debug, Info, Warning, Error | Debug |
|
|
||||||
| -noreload | Disable automatic reload when assets change | |
|
|
||||||
| -nocolour | Turn off colour cli output | false |
|
|
||||||
| -nogen | Disable generate module | |
|
|
||||||
| -v | Verbosity level (0 - silent, 1 - standard, 2 - verbose) | 1 |
|
|
||||||
| -wailsjsdir | The directory to generate the generated Wails JS modules | Value in `wails.json` |
|
|
||||||
| -debounce | The time to wait for reload after an asset change is detected | 100 (milliseconds) |
|
| -debounce | The time to wait for reload after an asset change is detected | 100 (milliseconds) |
|
||||||
| -devserver "host:port" | The address to bind the wails dev server to | "localhost:34115" |
|
| -devserver "host:port" | The address to bind the wails dev server to | "localhost:34115" |
|
||||||
|
| -extensions | Extensions to trigger rebuilds (comma separated) | go |
|
||||||
|
| -forcebuild | Force build of application | |
|
||||||
| -frontenddevserverurl "url" | Use 3rd party dev server url to serve assets, EG Vite | "" |
|
| -frontenddevserverurl "url" | Use 3rd party dev server url to serve assets, EG Vite | "" |
|
||||||
| -appargs "args" | Arguments passed to the application in shell style | |
|
| -ldflags "flags" | Additional ldflags to pass to the compiler | |
|
||||||
| -save | Saves the given `assetdir`, `reloaddirs`, `wailsjsdir`, `debounce`, `devserver` and `frontenddevserverurl` flags in `wails.json` to become the defaults for subsequent invocations. | |
|
| -loglevel "loglevel" | Loglevel to use - Trace, Debug, Info, Warning, Error | Debug |
|
||||||
| -race | Build with Go's race detector | false |
|
| -nocolour | Turn off colour cli output | false |
|
||||||
| -s | Skip building the frontend | false |
|
| -noreload | Disable automatic reload when assets change | |
|
||||||
| -nosyncgomod | Do not sync go.mod with the Wails version | false |
|
| -nosyncgomod | Do not sync go.mod with the Wails version | false |
|
||||||
|
| -race | Build with Go's race detector | false |
|
||||||
|
| -reloaddirs | Additional directories to trigger reloads (comma separated) | Value in `wails.json` |
|
||||||
|
| -s | Skip building the frontend | false |
|
||||||
|
| -save | Saves the given `assetdir`, `reloaddirs`, `wailsjsdir`, `debounce`, `devserver` and `frontenddevserverurl` flags in `wails.json` to become the defaults for subsequent invocations. | |
|
||||||
|
| -skipbindings | Skip bindings generation | |
|
||||||
|
| -tags "extra tags" | Build tags to pass to compiler (quoted and space separated) | |
|
||||||
|
| -v | Verbosity level (0 - silent, 1 - standard, 2 - verbose) | 1 |
|
||||||
|
| -wailsjsdir | The directory to generate the generated Wails JS modules | Value in `wails.json` |
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
|
|
||||||
|
@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
- Avoid app crashing when the Linux GTK key is empty by @aminya in [PR](https://github.com/wailsapp/wails/pull/2672)
|
- Avoid app crashing when the Linux GTK key is empty by @aminya in [PR](https://github.com/wailsapp/wails/pull/2672)
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
|
||||||
|
- Changed styling of `doctor` command. Changed by @MarvinJWendt in [PR](https://github.com/wailsapp/wails/pull/2660)
|
||||||
|
|
||||||
## v2.5.1 - 2023-05-16
|
## v2.5.1 - 2023-05-16
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
@ -48,7 +52,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Changed styling of `doctor` command. Changed by @MarvinJWendt in [PR](https://github.com/wailsapp/wails/pull/2660)
|
|
||||||
- [v3] Typescript model generation using `StructDef`s from new AST-based parser. Added by @ATenderholt in [PR1](https://github.com/wailsapp/wails/pull/2428/files) and [PR2](https://github.com/wailsapp/wails/pull/2485).
|
- [v3] Typescript model generation using `StructDef`s from new AST-based parser. Added by @ATenderholt in [PR1](https://github.com/wailsapp/wails/pull/2428/files) and [PR2](https://github.com/wailsapp/wails/pull/2485).
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
Loading…
Reference in New Issue
Block a user