Skip to content

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 ​

go
CheckUpdates(channel string) (LauncherUpdateDTO, error)

TypeScript ​

ts
CheckUpdates(channel: string): Promise<LauncherUpdateDTO>

Parameters ​

NameType
channelstring

Returns ​

Go typeTypeScript type
LauncherUpdateDTOLauncherUpdateDTO

Example ​

ts
const checkUpdates = await CheckUpdates("")

Source ​

internal/transport/wails/update_controller.go:59

CurrentVersion ​

CurrentVersion returns the running launcher version for display and update comparison.

Go ​

go
CurrentVersion() string

TypeScript ​

ts
CurrentVersion(): Promise<string>

Returns ​

Go typeTypeScript type
stringstring

Example ​

ts
const currentVersion = await CurrentVersion()

Source ​

internal/transport/wails/update_controller.go:54

InstallUpdate ​

InstallUpdate downloads and applies the newest update from the selected channel.

Go ​

go
InstallUpdate(channel string) error

TypeScript ​

ts
InstallUpdate(channel: string): Promise<void>

Parameters ​

NameType
channelstring

Example ​

ts
await InstallUpdate("")

Source ​

internal/transport/wails/update_controller.go:65

OpenReleasePage ​

OpenReleasePage opens the selected update channel's release page.

Go ​

go
OpenReleasePage(channel string) error

TypeScript ​

ts
OpenReleasePage(channel: string): Promise<void>

Parameters ​

NameType
channelstring

Example ​

ts
await OpenReleasePage("")

Source ​

internal/transport/wails/update_controller.go:84

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 ​

go
OpenUrl(rawURL string) error

TypeScript ​

ts
OpenUrl(rawURL: string): Promise<void>

Parameters ​

NameType
rawURLstring

Example ​

ts
await OpenUrl("https://example.com")

Source ​

internal/transport/wails/update_controller.go:97