mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 13:19:00 -07:00
[windows-x] Init startup hook
This commit is contained in:
@@ -89,6 +89,7 @@ func CreateApp(appoptions *options.App) (*App, error) {
|
||||
result.options = appoptions
|
||||
|
||||
result.SetupFlags()
|
||||
result.Init()
|
||||
result.ctx = context.WithValue(result.ctx, "debug", result.debug)
|
||||
|
||||
return result, nil
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// +build !windows
|
||||
//go:build !windows && !dev
|
||||
|
||||
package appng
|
||||
|
||||
@@ -10,3 +10,6 @@ import (
|
||||
func PreflightChecks(_ *options.App, _ *logger.Logger) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (a *App) Init() {
|
||||
}
|
||||
@@ -6,3 +6,6 @@ package appng
|
||||
func (a *App) SetupFlags() {
|
||||
a.debug = false
|
||||
}
|
||||
|
||||
func (a *App) Init() {
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
//go:build windows && desktop
|
||||
|
||||
package appng
|
||||
|
||||
import (
|
||||
@@ -30,3 +32,6 @@ func PreflightChecks(options *options.App, logger *logger.Logger) error {
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func (a *App) Init() {
|
||||
}
|
||||
Reference in New Issue
Block a user