LauncherUpdateController
LauncherUpdateController exposes launcher update checks and installation to the frontend. It stays limited to DTO conversion and feature invocation.
- Methods: 5
- Referenced types: 1
Methods
CheckUpdates
CheckUpdates checks the selected release channel for a newer launcher version.
Go
CheckUpdates(channel string) (LauncherUpdateDTO, error)TypeScript
CheckUpdates(channel: string): Promise<LauncherUpdateDTO>Parameters
| Name | Type |
|---|---|
channel | string |
Returns
| Go type | TypeScript type |
|---|---|
LauncherUpdateDTO | LauncherUpdateDTO |
Example
const checkUpdates = await CheckUpdates("")Source
internal/transport/wails/update_controller.go:51
CurrentVersion
CurrentVersion returns the running launcher version for display and update comparison.
Go
CurrentVersion() stringTypeScript
CurrentVersion(): Promise<string>Returns
| Go type | TypeScript type |
|---|---|
string | string |
Example
const currentVersion = await CurrentVersion()Source
internal/transport/wails/update_controller.go:46
InstallUpdate
InstallUpdate downloads and applies the newest update from the selected channel.
Go
InstallUpdate(channel string) errorTypeScript
InstallUpdate(channel: string): Promise<void>Parameters
| Name | Type |
|---|---|
channel | string |
Example
await InstallUpdate("")Source
internal/transport/wails/update_controller.go:57
OpenReleasePage
OpenReleasePage opens the selected update channel's release page.
Go
OpenReleasePage(channel string) errorTypeScript
OpenReleasePage(channel: string): Promise<void>Parameters
| Name | Type |
|---|---|
channel | string |
Example
await OpenReleasePage("")Source
internal/transport/wails/update_controller.go:76
OpenUrl
OpenUrl opens an http(s) link in the user's default browser. Only well-formed web links are accepted; any other scheme or a missing host is rejected.
Go
OpenUrl(rawURL string) errorTypeScript
OpenUrl(rawURL: string): Promise<void>Parameters
| Name | Type |
|---|---|
rawURL | string |
Example
await OpenUrl("https://example.com")Source
internal/transport/wails/update_controller.go:89