1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-01-31 10:19:27 +00:00
rolens/main.go

36 lines
641 B
Go
Raw Normal View History

2023-01-10 17:28:27 +01:00
package main
import (
"embed"
2023-01-14 20:47:29 +01:00
"github.com/garraflavatra/mongodup/internal/app"
2023-01-10 17:28:27 +01:00
"github.com/wailsapp/wails/v2"
"github.com/wailsapp/wails/v2/pkg/options"
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
)
//go:embed all:frontend/dist
var assets embed.FS
func main() {
2023-01-14 20:47:29 +01:00
app := app.NewApp()
2023-01-10 17:28:27 +01:00
err := wails.Run(&options.App{
Title: "Mongodup",
Width: 1000,
Height: 600,
AssetServer: &assetserver.Options{
Assets: assets,
},
BackgroundColour: &options.RGBA{R: 27, G: 38, B: 54, A: 1},
OnStartup: app.Startup,
Bind: []interface{}{
app,
},
})
if err != nil {
println("Error:", err.Error())
}
}