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.
31 lines
529 B
31 lines
529 B
3 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"github.com/leaanthony/mewn"
|
||
|
"github.com/wailsapp/wails"
|
||
|
"portfall/pkg/client"
|
||
|
"portfall/pkg/os"
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
|
||
|
js := mewn.String("./frontend/build/static/js/main.js")
|
||
|
css := mewn.String("./frontend/build/static/css/main.css")
|
||
|
|
||
|
c := &client.Client{}
|
||
|
o := &os.PortfallOS{}
|
||
|
|
||
|
app := wails.CreateApp(&wails.AppConfig{
|
||
|
Width: 1024,
|
||
|
Height: 768,
|
||
|
Title: "Portfall",
|
||
|
JS: js,
|
||
|
CSS: css,
|
||
|
Colour: "#fff",
|
||
|
Resizable: true,
|
||
|
})
|
||
|
app.Bind(c)
|
||
|
app.Bind(o)
|
||
|
app.Run()
|
||
|
}
|