mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 00:09:56 +08:00
Replace CreateApp with single Run() method
This commit is contained in:
parent
fe87463b78
commit
4ce8130cdf
11
v2/wails.go
11
v2/wails.go
@ -14,7 +14,12 @@ type Runtime = runtime.Runtime
|
|||||||
// Store is an alias for the Store object
|
// Store is an alias for the Store object
|
||||||
type Store = runtime.Store
|
type Store = runtime.Store
|
||||||
|
|
||||||
// CreateApp creates an application based on the given config
|
// Run creates an application based on the given config and executes it
|
||||||
func CreateApp(options *options.App) (*app.App, error) {
|
func Run(options *options.App) error {
|
||||||
return app.CreateApp(options)
|
app, err := app.CreateApp(options)
|
||||||
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
return app.Run()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user