forked from faglo/vzlom-kazino
-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.go
47 lines (40 loc) · 865 Bytes
/
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"
"github.com/wailsapp/wails/v2/pkg/options/mac"
"github.com/wailsapp/wails/v2"
"github.com/wailsapp/wails/v2/pkg/logger"
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/src
var assets embed.FS
//go:embed build/appicon.png
var icon []byte
func main() {
app := NewApp()
err := wails.Run(&options.App{
Title: "Взлом КАЗИНО",
Width: 400,
Height: 210,
DisableResize: true,
Frameless: true,
Assets: assets,
LogLevel: logger.DEBUG,
OnStartup: app.startup,
OnDomReady: app.domReady,
StartHidden: true,
Bind: []interface{}{
app,
},
Mac: &mac.Options{
About: &mac.AboutInfo{
Title: "Взлом КАЗИНО",
Message: "взлом казино",
Icon: icon,
},
},
})
if err != nil {
panic(err)
}
}