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
585 B
38 lines
585 B
3 years ago
|
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: true,
|
||
|
})
|
||
|
|
||
|
cfg := config.NewConfig()
|
||
|
st := stat.NewStat()
|
||
|
fm := image.NewFileManager(cfg, st)
|
||
|
|
||
|
app.Bind(cfg)
|
||
|
app.Bind(st)
|
||
|
app.Bind(fm)
|
||
|
_ = app.Run()
|
||
|
}
|