-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
49 lines (42 loc) · 1.11 KB
/
Copy pathmain.go
File metadata and controls
49 lines (42 loc) · 1.11 KB
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
package main
import (
"embed"
"log"
"github.com/wailsapp/wails/v3/pkg/application"
)
//go:embed all:frontend/dist
var assets embed.FS
func main() {
ensureAdmin()
app := application.New(application.Options{
Name: "NFA Tool Recode v2",
Description: "Steam ConnectCache token login",
Services: []application.Service{
application.NewService(NewAppService()),
},
Assets: application.AssetOptions{
Handler: application.AssetFileServerFS(assets),
},
Mac: application.MacOptions{
// Keep running if guide window is closed while main is open (and vice versa on mac).
ApplicationShouldTerminateAfterLastWindowClosed: true,
},
})
app.Window.NewWithOptions(application.WebviewWindowOptions{
Name: "main",
Title: "NFA Tool Recode v2",
Width: 1120,
Height: 780,
MinWidth: 1120,
MinHeight: 780,
MaxWidth: 1120,
MaxHeight: 780,
Frameless: true,
BackgroundColour: application.NewRGB(15, 15, 26),
URL: "/",
DisableResize: true,
})
if err := app.Run(); err != nil {
log.Fatal(err)
}
}