From 9d51011d9da10ddf968ad0265969762984255503 Mon Sep 17 00:00:00 2001 From: Sean Gosiaco Date: Wed, 9 Nov 2022 23:17:16 -0800 Subject: [PATCH] Updated to use wails v2.2.0 format --- main.go.tmpl | 5 ++++- wails.tmpl.json | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/main.go.tmpl b/main.go.tmpl index 16a853e..518a2aa 100644 --- a/main.go.tmpl +++ b/main.go.tmpl @@ -7,6 +7,7 @@ import ( "github.com/wailsapp/wails/v2" "github.com/wailsapp/wails/v2/pkg/logger" "github.com/wailsapp/wails/v2/pkg/options" + "github.com/wailsapp/wails/v2/pkg/options/assetserver" "github.com/wailsapp/wails/v2/pkg/options/mac" "github.com/wailsapp/wails/v2/pkg/options/windows" ) @@ -36,7 +37,9 @@ func main() { StartHidden: false, HideWindowOnClose: false, BackgroundColour: &options.RGBA{R: 255, G: 255, B: 255, A: 255}, - Assets: assets, + AssetServer: &assetserver.Options{ + Assets: assets, + }, Menu: nil, Logger: nil, LogLevel: logger.DEBUG, diff --git a/wails.tmpl.json b/wails.tmpl.json index 0f84d96..6014ac9 100644 --- a/wails.tmpl.json +++ b/wails.tmpl.json @@ -1,4 +1,5 @@ { + "$schema": "https://wails.io/schemas/config.v2.json", "name": "{{.ProjectName}}", "outputfilename": "{{.BinaryName}}", "frontend:install": "npm install",