mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
Fix: use correct json value for buildtype
This commit is contained in:
parent
f4b4e4cdb8
commit
39cebffa87
1 changed files with 3 additions and 1 deletions
|
|
@ -67,12 +67,14 @@ func Quit(ctx context.Context) {
|
|||
appFrontend.Quit()
|
||||
}
|
||||
|
||||
// EnvironmentInfo contains information about the environment
|
||||
type EnvironmentInfo struct {
|
||||
BuildType string `json:"buildtype"`
|
||||
BuildType string `json:"buildType"`
|
||||
Platform string `json:"platform"`
|
||||
Arch string `json:"arch"`
|
||||
}
|
||||
|
||||
// Environment returns information about the environment
|
||||
func Environment(ctx context.Context) EnvironmentInfo {
|
||||
var result EnvironmentInfo
|
||||
buildType := ctx.Value("buildtype")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue