Files

37 lines
633 B
Go
Raw Permalink Normal View History

2023-05-17 21:09:27 +10:00
package main
import (
"embed"
_ "embed"
"log"
"github.com/wailsapp/wails/v3/pkg/application"
)
//go:embed assets
var assets embed.FS
func main() {
app := application.New(application.Options{
Name: "Frameless Demo",
Description: "A demo of frameless windows",
Assets: application.AssetOptions{
Handler: application.BundledAssetFileServer(assets),
2023-05-17 21:09:27 +10:00
},
2023-07-21 08:24:38 +10:00
Mac: application.MacOptions{
ApplicationShouldTerminateAfterLastWindowClosed: true,
},
2023-05-17 21:09:27 +10:00
})
app.NewWebviewWindowWithOptions(application.WebviewWindowOptions{
Frameless: true,
})
err := app.Run()
if err != nil {
log.Fatal(err.Error())
}
}