-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.go
51 lines (46 loc) · 1.04 KB
/
run.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
48
49
50
51
package main
import (
"embed"
"github.com/wailsapp/wails/v2"
"github.com/wailsapp/wails/v2/pkg/options"
)
//go:embed frontend/dist
var assets embed.FS
func RunGUI() error {
app := NewApp()
// Create application with options
return wails.Run(
&options.App{
Title: "Papyri",
Width: 1024,
Height: 768,
DisableResize: false,
Fullscreen: false,
Frameless: false,
MinWidth: 0,
MinHeight: 0,
MaxWidth: 0,
MaxHeight: 0,
StartHidden: false,
HideWindowOnClose: false,
AlwaysOnTop: false,
RGBA: nil,
Assets: assets,
AssetsHandler: nil,
Menu: app.menu(),
Logger: nil,
LogLevel: 0,
OnStartup: app.startup,
OnDomReady: nil,
OnShutdown: nil,
OnBeforeClose: nil,
Bind: []interface{}{
app,
},
WindowStartState: 0,
Windows: nil,
Mac: nil,
Linux: nil,
},
)
}