Skip to content

Commit

Permalink
implement options.server + add to options.App
Browse files Browse the repository at this point in the history
  • Loading branch information
tmclane committed May 1, 2024
1 parent f7b3ed4 commit a0e05e6
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions v2/pkg/options/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions v2/pkg/options/server/options.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package server

// Options are options specific to the server
type Options struct {
EnableServer bool
Host string
Port int32
}

0 comments on commit a0e05e6

Please sign in to comment.