package main import ( _ "embed" "optimus/backend/config" "optimus/backend/image" "optimus/backend/stat" "github.com/wailsapp/wails" ) //go:embed frontend/dist/app.js var js string //go:embed frontend/dist/app.css var css string func main() { app := wails.CreateApp(&wails.AppConfig{ Width: 1200, Height: 742, Title: "Optimus", JS: js, CSS: css, Colour: "#18181f", Resizable: false, // 是否可以调整大小 DisableInspector: true, //是否开启调试模式 }) cfg := config.NewConfig() st := stat.NewStat() fm := image.NewFileManager(cfg, st) app.Bind(cfg) app.Bind(st) app.Bind(fm) _ = app.Run() }