mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 00:09:56 +08:00
Update docs and changelog
This commit is contained in:
parent
0a7293d6b6
commit
f7c602c212
@ -11,6 +11,8 @@ The project config resides in the `wails.json` file in the project directory. Th
|
||||
"name": "[The project name]",
|
||||
"assetdir": "[Relative path to the directory containing the compiled assets, this is normally inferred and could be left empty]",
|
||||
"reloaddirs": "[Additional directories to trigger reloads (comma separated), this is only used for some advanced asset configurations]",
|
||||
"build:dir": "[The directory where the build files reside. Defaults to 'build']",
|
||||
"frontend:dir": "[Relative path to the frontend directory. Defaults to 'frontend']",
|
||||
"frontend:install": "[The command to install node dependencies, run in the frontend directory - often `npm install`]",
|
||||
"frontend:build": "[The command to build the assets, run in the frontend directory - often `npm run build`]",
|
||||
"frontend:dev": "[This command has been replaced by frontend:dev:build. If frontend:dev:build is not specified will falls back to this command. \nIf this command is also not specified will falls back to frontend:build]",
|
||||
|
@ -5,6 +5,38 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## v2.2.0 - 2022-11-09
|
||||
|
||||
### Added
|
||||
* Wails now uses a purpose built, native Go implementation of Microsoft's webview2loader dll. This means there is no need to embed the `Webview2Loader.dll` file in your binaries, meaning filesizes will be ~130k smaller! Thanks to @stffabi for this [awesome contribution](https://github.com/wailsapp/wails/pull/1974)!
|
||||
* This release provides much more control over custom asset handling via the new [AssetServer](https://wails.io/docs/reference/options#assetserver) options. This allows you to provide your own custom asset handler and hook into the request chain through middleware. Thanks to @stffabi for this [awesome contribution](https://github.com/wailsapp/wails/pull/2016) and @mholt for the [initial idea](https://github.com/wailsapp/wails/issues/2007) and extensive testing.
|
||||
* It is now possible to customise the layout of your Wails projects using 2 new options in `wails.json`:
|
||||
* `build:dir` can be used to specify where the build files reside
|
||||
* `frontend:dir` can be used to specify where the frontend files reside
|
||||
* If `go.mod` is not found in the same directory as `wails.json`, the cli will look up the parent directories to find it. Fixed by @leaanthony in this [PR](https://github.com/wailsapp/wails/pull/2009)
|
||||
* Colour output in the CLI can now be turned off by using the `--nocolor` flag. This is useful for CI/CD pipelines. Thanks to @scottopell for the [PR](https://github.com/wailsapp/wails/pull/1947)
|
||||
* A JSON schema definition for the `wails.json` file has been added. IDEs should now provide code complete when editing `wails.json`. Thanks to @binyamin for the [PR](https://github.com/wailsapp/wails/pull/1864)
|
||||
* The `EventsOn*` methods now return a function that can be called to deregister the listener. Thanks to @joshbuddy for the [PR](https://github.com/wailsapp/wails/pull/1969)
|
||||
|
||||
### Fixed
|
||||
* Webview2 on Windows returns a potential whitespace when defining the style like this style="--wails-draggable: drag". Fixed by @stffabi in https://github.com/wailsapp/wails/pull/1989
|
||||
* Bound structs that had `struct{}` field types would cause the Typescript generation to fail. Thanks to @ParkourLiu for the [PR](https://github.com/wailsapp/wails/pull/1999)
|
||||
* When maximising a frameless window on Windows with multiple monitors, the window could sometimes become blank. Thanks to @stffabi for the [fix](https://github.com/wailsapp/wails/pull/2043)
|
||||
|
||||
### Changed
|
||||
* The troubleshooting guide was updated to provide guidance when [Vite fails to start](https://wails.io/docs/guides/troubleshooting#cannot-start-service-host-version-xxx-does-not-match-binary-version-xxx). Thanks to @willdot for the [PR](https://github.com/wailsapp/wails/pull/2000).
|
||||
* English, Chinese and Japanese documentation updates. Thanks to @misitebao.
|
||||
|
||||
### Deprecated
|
||||
* The [AssetsHandler](https://wails.io/docs/reference/options#assetshandler) option has been deprecated. Please use the [AssetServer](https://wails.io/docs/reference/options#assetserver) option instead.
|
||||
|
||||
### New Contributors
|
||||
* @willdot made their first contribution in https://github.com/wailsapp/wails/pull/2000
|
||||
* @ParkourLiu made their first contribution in https://github.com/wailsapp/wails/pull/1999
|
||||
* @binyamin made their first contribution in https://github.com/wailsapp/wails/pull/1864
|
||||
* @joshbuddy made their first contribution in https://github.com/wailsapp/wails/pull/1969
|
||||
* @sgosiaco made their first contribution in https://github.com/wailsapp/wails/pull/2062
|
||||
|
||||
## v2.1.0 - 2022-10-18
|
||||
|
||||
### Removed
|
||||
|
Loading…
Reference in New Issue
Block a user