package main import ( "embed" backend "rwkv-runner/backend-golang" "github.com/wailsapp/wails/v2" "github.com/wailsapp/wails/v2/pkg/options" "github.com/wailsapp/wails/v2/pkg/options/assetserver" ) //go:embed all:frontend/dist var assets embed.FS func main() { // Create an instance of the app structure app := backend.NewApp() // Create application with options err := wails.Run(&options.App{ Title: "RWKV-Runner", Width: 1024, Height: 640, MinWidth: 375, MinHeight: 640, AssetServer: &assetserver.Options{ Assets: assets, }, OnStartup: app.OnStartup, Bind: []interface{}{ app, }, }) if err != nil { println("Error:", err.Error()) } }