mirror of
https://github.com/wavetermdev/wails.git
synced 2026-08-05 13:53:43 -07:00
implement options.server + add to options.App
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
|
||||
"github.com/wailsapp/wails/v2/pkg/options/linux"
|
||||
"github.com/wailsapp/wails/v2/pkg/options/mac"
|
||||
"github.com/wailsapp/wails/v2/pkg/options/server"
|
||||
"github.com/wailsapp/wails/v2/pkg/options/windows"
|
||||
|
||||
"github.com/wailsapp/wails/v2/pkg/menu"
|
||||
@@ -95,6 +96,8 @@ type App struct {
|
||||
|
||||
// Debug options for debug builds. These options will be ignored in a production build.
|
||||
Debug Debug
|
||||
// Server options (also used by hybrid)
|
||||
Server *server.Options
|
||||
}
|
||||
|
||||
type ErrorFormatter func(error) any
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package server
|
||||
|
||||
// Options are options specific to the server
|
||||
type Options struct {
|
||||
EnableServer bool
|
||||
Host string
|
||||
Port int32
|
||||
}
|
||||
Reference in New Issue
Block a user