mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
[windows-x] Init startup hook
This commit is contained in:
parent
32591465f3
commit
ec8d8e4587
4 changed files with 13 additions and 1 deletions
|
|
@ -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() {
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue