// Command mpckit is the desktop kit editor for the MPC Sample. package main import ( "embed" "log" "github.com/wailsapp/wails/v3/pkg/application" "git.monoexp.com/bajdev/mpckit/internal/app" ) // The built Svelte app (frontend/dist), embedded in the binary. // //go:embed all:frontend/dist var assets embed.FS func main() { a := application.New(application.Options{ Name: "mpckit", Description: "Desktop kit editor for the MPC Sample", Services: []application.Service{ application.NewService(app.NewService()), }, Assets: application.AssetOptions{ Handler: application.AssetFileServerFS(assets), }, Mac: application.MacOptions{ ApplicationShouldTerminateAfterLastWindowClosed: true, }, }) a.Window.NewWithOptions(application.WebviewWindowOptions{ Title: "mpckit", Width: 1280, Height: 860, MinWidth: 760, MinHeight: 600, BackgroundColour: application.NewRGB(0x15, 0x17, 0x1A), URL: "/", }) if err := a.Run(); err != nil { log.Fatal(err) } }