-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
47 lines (38 loc) · 1.13 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package main
import (
_ "embed"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/ul-gaul/stratos_ground-station/backend/acquisition/utils"
"github.com/ul-gaul/stratos_ground-station/backend/cmd"
"github.com/ul-gaul/stratos_ground-station/backend/config"
_ "github.com/ul-gaul/stratos_ground-station/backend/config"
"github.com/ul-gaul/stratos_ground-station/backend/controller"
"github.com/ul-gaul/stratos_ground-station/backend/pool"
"github.com/wailsapp/wails"
)
const Title = "Stratos - Ground Station"
//go:embed frontend/dist/app.js
var js string
//go:embed frontend/dist/app.css
var css string
func main() {
defer pool.Release()
app := wails.CreateApp(&wails.AppConfig{
Width: config.General.WindowWidth,
Height: config.General.WindowHeight,
Title: Title,
JS: js,
CSS: css,
Colour: "",
Resizable: true,
DisableInspector: false,
})
app.Bind(controller.Controller)
utils.CheckErr(cmd.Execute(func(cmd *cobra.Command, args []string) error {
return app.Run()
}))
}
func init() {
log.SetLevel(config.General.LogLevel)
}