5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 20:39:34 +08:00
wails/v2/wails_windows.go
2021-07-24 15:04:02 +10:00

29 lines
553 B
Go

// +build windows
// +build experimental
// Package wails is the main package of the Wails project.
// It is used by client applications.
package wails
import (
app "github.com/wailsapp/wails/v2/internal/appng"
"github.com/wailsapp/wails/v2/pkg/options"
)
// Run creates an application based on the given config and executes it
func Run(options *options.App) error {
// Call an Init method manually
err := Init()
if err != nil {
return err
}
mainapp, err := app.CreateApp(options)
if err != nil {
return err
}
return mainapp.Run()
}