forked from go/golangs_learn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
667 B
38 lines
667 B
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()
|
|
}
|
|
|