5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 20:40:33 +08:00

v2.0.0-beta.43

This commit is contained in:
Lea Anthony 2022-08-08 20:08:32 +10:00
parent d86daaa211
commit 1955570264
No known key found for this signature in database
GPG Key ID: 33DAF7BB90A58405
69 changed files with 184 additions and 110 deletions

View File

@ -1 +1 @@
v2.0.0-beta.42 v2.0.0-beta.43

View File

@ -7,6 +7,40 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [v2.0.0-beta.42] - 2022-08-08
## Added
* Add support for retrieving the release notes from Github by @leaanthony in https://github.com/wailsapp/wails/pull/1679
* Add `frontend:dev:install` configuration by @LGiki in https://github.com/wailsapp/wails/pull/1666
## Fixed
* Fix formatting of some error messages by @stffabi in https://github.com/wailsapp/wails/pull/1665
* Windows dialogs now work when window is not visible yet by @leaanthony in https://github.com/wailsapp/wails/pull/1662
* Multiple fixes for MacOS asset requests by @stffabi in https://github.com/wailsapp/wails/pull/1668
and https://github.com/wailsapp/wails/pull/1681
* Fix for Go 1.19 by @stffabi in https://github.com/wailsapp/wails/pull/1689
* Removed Linux warnings by @leaanthony in https://github.com/wailsapp/wails/pull/1656
* Better support for doubleclick events in drag regions by @leaanthony in https://github.com/wailsapp/wails/pull/1704
* Allow MacOS frameless window to be miniturisable by @leaanthony in https://github.com/wailsapp/wails/pull/1705
## What's Changed
* add wails-sveltekit-template by @h8gi in https://github.com/wailsapp/wails/pull/1671
* wails doctor now reports correct MacOS os id by @stffabi in https://github.com/wailsapp/wails/pull/1673
* Update application-development.mdx by @SamHennessy in https://github.com/wailsapp/wails/pull/1682
* Move SetMin/Max calls to main thread by @leaanthony in https://github.com/wailsapp/wails/pull/1684
* Change `frontend:dev` to `frontend:dev:build` by @LGiki in https://github.com/wailsapp/wails/pull/1691
* Build frontend only before starting the dev watcher command by @stffabi in https://github.com/wailsapp/wails/pull/1694
* Improve error message for auto dev server discovery without a dev watcher by @stffabi
in https://github.com/wailsapp/wails/pull/1711
## New Contributors
* @h8gi made their first contribution in https://github.com/wailsapp/wails/pull/1671
* @SamHennessy made their first contribution in https://github.com/wailsapp/wails/pull/1682
## [v2.0.0-beta.42] - 2022-07-25 ## [v2.0.0-beta.42] - 2022-07-25
## Added ## Added

View File

@ -1,3 +1,4 @@
# EncryptEasy # EncryptEasy
<p style={{"text-align": "center"}}> <p style={{"text-align": "center"}}>

View File

@ -1,3 +1,4 @@
# FileHound Export Utility # FileHound Export Utility
<p style={{"text-align": "center"}}> <p style={{"text-align": "center"}}>

View File

@ -1,3 +1,4 @@
# Molley Wallet # Molley Wallet
<p style={{"text-align": "center"}}> <p style={{"text-align": "center"}}>

View File

@ -1,3 +1,4 @@
# Optimus # Optimus
<p style={{"text-align": "center"}}> <p style={{"text-align": "center"}}>

View File

@ -1,3 +1,4 @@
# Portfall # Portfall
<p style={{"text-align": "center"}}> <p style={{"text-align": "center"}}>

View File

@ -1,3 +1,4 @@
# Restic Browser # Restic Browser
<p style={{"text-align": "center"}}> <p style={{"text-align": "center"}}>

View File

@ -1,3 +1,4 @@
# RiftShare # RiftShare
<p style={{"text-align": "center"}}> <p style={{"text-align": "center"}}>

View File

@ -1,3 +1,4 @@
# Surge # Surge
<p style={{"text-align": "center"}}> <p style={{"text-align": "center"}}>

View File

@ -1,3 +1,4 @@
# Wally # Wally
<p style={{"text-align": "center"}}> <p style={{"text-align": "center"}}>

View File

@ -1,3 +1,4 @@
# Wombat # Wombat
<p style={{"text-align": "center"}}> <p style={{"text-align": "center"}}>

View File

@ -42,6 +42,7 @@ If you are unsure about a template, inspect `package.json` and `wails.json` for
- [wails-svelte-template](https://github.com/raitonoberu/wails-svelte-template) - A template using Svelte - [wails-svelte-template](https://github.com/raitonoberu/wails-svelte-template) - A template using Svelte
- [wails-vite-svelte-template](https://github.com/BillBuilt/wails-vite-svelte-template) - A template using Svelte and Vite - [wails-vite-svelte-template](https://github.com/BillBuilt/wails-vite-svelte-template) - A template using Svelte and Vite
- [wails-vite-svelte-tailwind-template](https://github.com/BillBuilt/wails-vite-svelte-tailwind-template) - A template using Svelte and Vite with TailwindCSS v3 - [wails-vite-svelte-tailwind-template](https://github.com/BillBuilt/wails-vite-svelte-tailwind-template) - A template using Svelte and Vite with TailwindCSS v3
- [wails-sveltekit-template](https://github.com/h8gi/wails-sveltekit-template) - A template using SvelteKit
## Elm ## Elm

View File

@ -10,8 +10,7 @@ This will compile your project and save the production-ready binary in the `buil
If you run the binary, you should see the default application: If you run the binary, you should see the default application:
<div class="text--center"> <div class="text--center">
<img src="/img/defaultproject.png" width="50%" <img src="/img/defaultproject.png" width="50%" style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
</div> </div>
<br/> <br/>

View File

@ -10,7 +10,7 @@ Now that the CLI is installed, you can generate a new project by using the `wail
Pick your favourite framework: Pick your favourite framework:
import TabsFrameworks from "../../../src/components/frameworktabs"; import TabsFrameworks from "../../src/components/frameworktabs";
<TabsFrameworks/> <TabsFrameworks/>
<hr/> <hr/>

View File

@ -37,10 +37,9 @@ Run `npm --version` to verify.
You will also need to install platform specific dependencies: You will also need to install platform specific dependencies:
import TabsInstaller from "../../../src/components/tabinstall"; import TabsInstaller from "../../src/components/tabinstall";
<TabsInstaller /> <TabsInstaller />
## Optional Dependencies ## Optional Dependencies
- [UPX](https://upx.github.io/) for compressing your applications. - [UPX](https://upx.github.io/) for compressing your applications.

View File

@ -1,3 +1,4 @@
# Application Development # Application Development
There are no hard and fast rules for developing applications with Wails, but there are some basic guidelines. There are no hard and fast rules for developing applications with Wails, but there are some basic guidelines.
@ -82,7 +83,7 @@ func (a *App) shutdown(ctx context.Context) {
} }
func (a *App) Greet(name string) string { func (a *App) Greet(name string) string {
return fmt.Printf("Hello %s!", name) return fmt.Sprintf("Hello %s!", name)
} }
``` ```

View File

@ -1,3 +1,4 @@
# Frameless Applications # Frameless Applications
Wails supports applications with no frame. This can be achieved by using the [frameless](../reference/options.mdx#frameless) Wails supports applications with no frame. This can be achieved by using the [frameless](../reference/options.mdx#frameless)

View File

@ -1,3 +1,4 @@
# Frontend # Frontend
## Script Injection ## Script Injection

View File

@ -1,3 +1,4 @@
# IDEs # IDEs
Wails aims to provide a great development experience. To that aim, we now support generating IDE specific configuration Wails aims to provide a great development experience. To that aim, we now support generating IDE specific configuration

View File

@ -1,3 +1,4 @@
# Manual Builds # Manual Builds
The Wails CLI does a lot of heavy lifting for the project, but sometimes it's desirable to manually build your project. The Wails CLI does a lot of heavy lifting for the project, but sometimes it's desirable to manually build your project.

View File

@ -1,3 +1,4 @@
# Migrating from v1 # Migrating from v1
## Overview ## Overview
@ -198,10 +199,8 @@ The format of the file is slightly different. Here is a comparison:
| frontend / serve | | Removed | | frontend / serve | | Removed |
| tags | | Removed | | tags | | Removed |
| | wailsjsdir | The directory to generate wailsjs modules | | | wailsjsdir | The directory to generate wailsjs modules |
| | assetdir | The directory of the compiled frontend assets for `dev` mode. This is normally inferred and could be | | assetdir | The directory of the compiled frontend assets for `dev` mode. This is normally inferred and could be left empty. |
left empty. | | | reloaddirs | Comma separated list of additional directories to watch for changes and to trigger reloads in `dev` mode. This is only needed for some more advanced asset configurations. |
| | reloaddirs | Comma separated list of additional directories to watch for changes and to trigger reloads in `dev`
mode. This is only needed for some more advanced asset configurations. |
</p> </p>

View File

@ -1,3 +1,4 @@
# Overscroll # Overscroll
[Overscroll](https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior) is the "bounce effect" you sometimes [Overscroll](https://developer.mozilla.org/en-US/docs/Web/CSS/overscroll-behavior) is the "bounce effect" you sometimes

View File

@ -1,3 +1,4 @@
# Routing # Routing
Routing is a popular way to switch views in an application. This page offers some guidance around how to do that. Routing is a popular way to switch views in an application. This page offers some guidance around how to do that.

View File

@ -1,3 +1,4 @@
# Templates # Templates
Wails generates projects from pre-created templates. In v1, this was a difficult to maintain set of projects that were Wails generates projects from pre-created templates. In v1, this was a difficult to maintain set of projects that were

View File

@ -1,3 +1,4 @@
# Windows # Windows
This page has miscellaneous guides related to developing Wails applications for Windows. This page has miscellaneous guides related to developing Wails applications for Windows.

View File

@ -207,7 +207,7 @@ This makes it incredibly simple to call Go code from the frontend, using the sam
### Overview ### Overview
The frontend is a collection of files rendered by webkit. It''s like a browser and webserver in one. The frontend is a collection of files rendered by webkit. It's like a browser and webserver in one.
There is virtually[^1] no limit to which frameworks or libraries you can use. The main points of interaction between There is virtually[^1] no limit to which frameworks or libraries you can use. The main points of interaction between
the frontend and your Go code are: the frontend and your Go code are:
@ -253,7 +253,7 @@ export function Greet(arg1:string):Promise<string>;
``` ```
The generated methods return a Promise. A successful call will result in the first return value from the Go call to be passed The generated methods return a Promise. A successful call will result in the first return value from the Go call to be passed
to the `resolve` handler. An unsuccessful call is when a Go method that has an error type as it''s second return value, to the `resolve` handler. An unsuccessful call is when a Go method that has an error type as it's second return value,
passes an error instance back to the caller. This is passed back via the `reject` handler. passes an error instance back to the caller. This is passed back via the `reject` handler.
In the example above, `Greet` only returns a `string` so the Javascript call will never reject - unless invalid data In the example above, `Greet` only returns a `string` so the Javascript call will never reject - unless invalid data
is passed to it. is passed to it.
@ -268,12 +268,12 @@ Anonymous nested structs are not supported at this time.
It is possible to send structs back to Go. Any Javascript map/class passed as an argument that It is possible to send structs back to Go. Any Javascript map/class passed as an argument that
is expecting a struct, will be converted to that struct type. To make this process a lot easier, in `dev` mode, is expecting a struct, will be converted to that struct type. To make this process a lot easier, in `dev` mode,
a TypeScript module is generated, defining all the struct types used in bound methods. Using this module, it''s possible a TypeScript module is generated, defining all the struct types used in bound methods. Using this module, it's possible
to construct and send native Javascript objects to the Go code. to construct and send native Javascript objects to the Go code.
There is also support for Go methods that use structs in their signature. All Go structs There is also support for Go methods that use structs in their signature. All Go structs
specified by a bound method (either as parameters or return types) will have Typescript versions auto specified by a bound method (either as parameters or return types) will have Typescript versions auto
generated as part of the Go code wrapper module. Using these, it''s possible to share the same data generated as part of the Go code wrapper module. Using these, it's possible to share the same data
model between Go and Javascript. model between Go and Javascript.
Example: We update our `Greet` method to accept a `Person` instead of a string: Example: We update our `Greet` method to accept a `Person` instead of a string:

View File

@ -54,13 +54,13 @@ 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. | runtime.GOOS/runtime.GOARCH | | -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 |
| -ldflags "flags" | Additional ldflags to pass to the compiler | | | -ldflags "flags" | Additional ldflags to pass to the compiler | |
| -nopackage | Do not package application | | | -nopackage | Do not package application | |
| -o filename | Output filename | | | -o filename | Output filename | |
| -s | Skip building the frontend | | | -s | Skip building the frontend | false |
| -f | Force build application | false | | -f | Force build application | false |
| -tags "extra tags" | Build tags to pass to compiler (quoted and space separated) | | | -tags "extra tags" | Build tags to pass to compiler (quoted and space separated) | |
| -upx | Compress final binary using "upx" | | | -upx | Compress final binary using "upx" | |
@ -177,9 +177,9 @@ Your system is ready for Wails development!
| -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" |
| -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 | | | -appargs "args" | Arguments passed to the application in shell style | |
| -platform "platform" | Platform/Arch to target | `runtime.GOOS` |
| -save | Saves the given `assetdir`, `reloaddirs`, `wailsjsdir`, `debounce`, `devserver` and `frontenddevserverurl` flags in `wails.json` to become the defaults for subsequent invocations. | | | -save | Saves the given `assetdir`, `reloaddirs`, `wailsjsdir`, `debounce`, `devserver` and `frontenddevserverurl` flags in `wails.json` to become the defaults for subsequent invocations. | |
| -race | Build with Go's race detector | false | | -race | Build with Go's race detector | false |
| -s | Skip building the frontend | false |
Example: Example:
@ -208,6 +208,10 @@ it may be used for generating projects.
For more details on creating templates, consult the [Templates guide](../guides/templates.mdx). For more details on creating templates, consult the [Templates guide](../guides/templates.mdx).
### module
The `wails generate module` command allows you to manually generate the `wailsjs` directory for your application.
## update ## update
`wails update` will update the version of the Wails CLI. `wails update` will update the version of the Wails CLI.

View File

@ -12,17 +12,17 @@ An example of how to create a menu:
```go ```go
AppMenu := menu.NewMenu() AppMenu := menu.NewMenu()
if runtime.GOOS == "darwin" {
AppMenu.Append(menu.AppMenu()) // On MacOS platform, the first menu will always be fixed
AppMenu.Append(menu.EditMenu()) // on macos platform, we should append EditMenu to enable Cmd+C,Cmd+V,Cmd+Z... shortcut
}
FileMenu := AppMenu.AddSubmenu("File") FileMenu := AppMenu.AddSubmenu("File")
FileMenu.AddText("&Open", keys.CmdOrCtrl("o"), openFile) FileMenu.AddText("&Open", keys.CmdOrCtrl("o"), openFile)
FileMenu.AddSeparator() FileMenu.AddSeparator()
FileMenu.AddText("Quit", keys.CmdOrCtrl("q"), func(_ *menu.CallbackData) { FileMenu.AddText("Quit", keys.CmdOrCtrl("q"), func(_ *menu.CallbackData) {
a.Quit() // Must define a Quit function in app.go with context runtime.Quit()
}) })
if runtime.GOOS == "darwin" {
AppMenu.Append(menu.EditMenu()) // on macos platform, we should append EditMenu to enable Cmd+C,Cmd+V,Cmd+Z... shortcut
}
err := wails.Run(&options.App{ err := wails.Run(&options.App{
Title: "Menus Demo", Title: "Menus Demo",
Width: 800, Width: 800,

View File

@ -19,7 +19,7 @@ func main() {
Width: 800, Width: 800,
Height: 600, Height: 600,
DisableResize: false, DisableResize: false,
//Fullscreen: false, // This option is deprecated. Use WindowStartState instead Fullscreen: false,
Frameless: true, Frameless: true,
MinWidth: 400, MinWidth: 400,
MinHeight: 400, MinHeight: 400,
@ -135,8 +135,6 @@ Type: bool
Setting this to `true` will make the window fullscreen at startup. Setting this to `true` will make the window fullscreen at startup.
Note: Fullscreen is deprecated. Use WindowStartState: options.Fullscreen instead
### Frameless ### Frameless
Name: Frameless Name: Frameless
@ -704,16 +702,14 @@ func main() {
The "About" menu item will appear in the app menu: The "About" menu item will appear in the app menu:
<div class="text--center"> <div class="text--center">
<img src="/img/reference/about-menu.png" <img src="/img/reference/about-menu.png" style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
</div> </div>
<br/> <br/>
When clicked, that will open an about message box: When clicked, that will open an about message box:
<div class="text--center"> <div class="text--center">
<img src="/img/reference/about-dialog.png" width="40%" <img src="/img/reference/about-dialog.png" width="40%" style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
</div> </div>
<br/> <br/>

View File

@ -13,7 +13,9 @@ The project config resides in the `wails.json` file in the project directory. Th
"reloaddirs": "[Additional directories to trigger reloads (comma separated), this is only used for some advanced asset configurations]", "reloaddirs": "[Additional directories to trigger reloads (comma separated), this is only used for some advanced asset configurations]",
"frontend:install": "[The command to install node dependencies, run in the frontend directory - often `npm install`]", "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:build": "[The command to build the assets, run in the frontend directory - often `npm run build`]",
"frontend:dev": "[This command is the dev equivalent of frontend:build. If not specified falls back to frontend: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. If this command is also not specified will falls back to frontend:build]",
"frontend:dev:build": "[This command is the dev equivalent of frontend:build. If not specified falls back to frontend:dev]",
"frontend:dev:install": "[This command is the dev equivalent of frontend:install. If not specified falls back to frontend:install]",
"frontend:dev:watcher": "[This command is run in a separate process on `wails dev`. Useful for 3rd party watchers or starting 3d party dev servers]", "frontend:dev:watcher": "[This command is run in a separate process on `wails dev`. Useful for 3rd party watchers or starting 3d party dev servers]",
"frontend:dev:serverUrl": "[URL to a 3rd party dev server to be used to serve assets, EG Vite. If this is set to 'auto' then the devServerUrl will be inferred from the Vite output]", "frontend:dev:serverUrl": "[URL to a 3rd party dev server to be used to serve assets, EG Vite. If this is set to 'auto' then the devServerUrl will be inferred from the Vite output]",
"wailsjsdir": "[Relative path to the directory that the auto-generated JS modules will be created]", "wailsjsdir": "[Relative path to the directory that the auto-generated JS modules will be created]",

View File

@ -157,8 +157,7 @@ selection, err := runtime.MessageDialog(b.ctx, runtime.MessageDialogOptions{
``` ```
the first button is shown as default: the first button is shown as default:
<div class="text--center"> <div class="text--center">
<img src="/img/runtime/dialog_no_defaults.png" width="30%" <img src="/img/runtime/dialog_no_defaults.png" width="30%" style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
</div> </div>
<br/> <br/>
@ -173,8 +172,7 @@ selection, err := runtime.MessageDialog(b.ctx, runtime.MessageDialogOptions{
``` ```
the second button is shown as default. When `return` is pressed, the value "two" is returned. the second button is shown as default. When `return` is pressed, the value "two" is returned.
<div class="text--center"> <div class="text--center">
<img src="/img/runtime/dialog_default_button.png" width="30%" <img src="/img/runtime/dialog_default_button.png" width="30%" style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
</div> </div>
<br/> <br/>
@ -190,8 +188,7 @@ selection, err := runtime.MessageDialog(b.ctx, runtime.MessageDialogOptions{
``` ```
the button with "three" is shown at the bottom of the dialog. When `escape` is pressed, the value "three" is returned: the button with "three" is shown at the bottom of the dialog. When `escape` is pressed, the value "three" is returned:
<div class="text--center"> <div class="text--center">
<img src="/img/runtime/dialog_default_cancel.png" width="30%" <img src="/img/runtime/dialog_default_cancel.png" width="30%" style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
</div> </div>
<br/> <br/>
<br/> <br/>
@ -224,8 +221,7 @@ Windows allows you to use multiple file filters in dialog boxes. Each FileFilter
dialog: dialog:
<div class="text--center"> <div class="text--center">
<img src="/img/runtime/dialog_win_filters.png" width="50%" <img src="/img/runtime/dialog_win_filters.png" width="50%" style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
</div> </div>
<br/> <br/>
<br/> <br/>
@ -237,8 +233,7 @@ Linux allows you to use multiple file filters in dialog boxes. Each FileFilter w
dialog: dialog:
<div class="text--center"> <div class="text--center">
<img src="/img/runtime/dialog_lin_filters.png" width="50%" <img src="/img/runtime/dialog_lin_filters.png" width="50%" style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
style={{"box-shadow": "rgb(255 255 255 / 20%) 0px 4px 8px 0px, rgb(104 104 104) 0px 6px 20px 0px"}}/>
</div> </div>
<br/> <br/>
<br/> <br/>

View File

@ -24,6 +24,29 @@ The Javascript library is available to the frontend via the `window.runtime` map
mode that provides Typescript declarations for the runtime. This should be located in the `wailsjs` directory in your mode that provides Typescript declarations for the runtime. This should be located in the `wailsjs` directory in your
frontend directory. frontend directory.
### Hide
Go Signature: `Hide(ctx context.Context)`
Hides the application.
:::info Note
On Mac, this will hide the application in the same way as the `Hide` menu item in standard Mac applications.
This is different to hiding the window, but the application still being in the foreground.
For Windows and Linux, this is currently the same as `WindowHide`.
:::
### Show
Go Signature: `Show(ctx context.Context)`
Shows the application.
:::info Note
On Mac, this will bring the application back into the foreground.
For Windows and Linux, this is currently the same as `WindowShow`.
:::
### Quit ### Quit
Go Signature: `Quit(ctx context.Context)` Go Signature: `Quit(ctx context.Context)`

View File

@ -1,4 +1,4 @@
[ [
"v2.0.0-beta.40", "v2.0.0-beta.43",
"v2.0.0-beta.39" "v2.0.0-beta.40"
] ]