[windows-x] Init startup hook

This commit is contained in:
Lea Anthony 2021-08-18 22:05:30 +10:00
commit ec8d8e4587
4 changed files with 13 additions and 1 deletions

View file

@ -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

View file

@ -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() {
}

View file

@ -6,3 +6,6 @@ package appng
func (a *App) SetupFlags() {
a.debug = false
}
func (a *App) Init() {
}

View file

@ -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() {
}