mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 06:20:48 +08:00
[v2, dev] Fix skipbindings flag in wails dev (#2584)
This commit is contained in:
parent
1979bca0f5
commit
b64b2a8da1
@ -2,14 +2,15 @@ package flags
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/samber/lo"
|
|
||||||
"github.com/wailsapp/wails/v2/internal/project"
|
|
||||||
"github.com/wailsapp/wails/v2/pkg/commands/build"
|
|
||||||
"net"
|
"net"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
|
"github.com/samber/lo"
|
||||||
|
"github.com/wailsapp/wails/v2/internal/project"
|
||||||
|
"github.com/wailsapp/wails/v2/pkg/commands/build"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Dev struct {
|
type Dev struct {
|
||||||
@ -126,6 +127,7 @@ func (d *Dev) GenerateBuildOptions() *build.Options {
|
|||||||
Compiler: d.Compiler,
|
Compiler: d.Compiler,
|
||||||
ForceBuild: d.ForceBuild,
|
ForceBuild: d.ForceBuild,
|
||||||
IgnoreFrontend: d.SkipFrontend,
|
IgnoreFrontend: d.SkipFrontend,
|
||||||
|
SkipBindings: d.SkipBindings,
|
||||||
Verbosity: d.Verbosity,
|
Verbosity: d.Verbosity,
|
||||||
WailsJSDir: d.WailsJSDir,
|
WailsJSDir: d.WailsJSDir,
|
||||||
RaceDetector: d.RaceDetector,
|
RaceDetector: d.RaceDetector,
|
||||||
|
@ -44,31 +44,6 @@ func sliceToMap(input []string) map[string]struct{} {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
type devFlags struct {
|
|
||||||
ldflags string
|
|
||||||
compilerCommand string
|
|
||||||
assetDir string
|
|
||||||
extensions string
|
|
||||||
reloadDirs string
|
|
||||||
openBrowser bool
|
|
||||||
noReload bool
|
|
||||||
skipBindings bool
|
|
||||||
wailsjsdir string
|
|
||||||
tags string
|
|
||||||
verbosity int
|
|
||||||
loglevel string
|
|
||||||
forceBuild bool
|
|
||||||
debounceMS int
|
|
||||||
devServer string
|
|
||||||
appargs string
|
|
||||||
saveConfig bool
|
|
||||||
raceDetector bool
|
|
||||||
|
|
||||||
frontendDevServerURL string
|
|
||||||
skipFrontend bool
|
|
||||||
noColour bool
|
|
||||||
}
|
|
||||||
|
|
||||||
// Application runs the application in dev mode
|
// Application runs the application in dev mode
|
||||||
func Application(f *flags.Dev, logger *clilogger.CLILogger) error {
|
func Application(f *flags.Dev, logger *clilogger.CLILogger) error {
|
||||||
|
|
||||||
|
@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fixed console printing in `wails generate template`. Fixed by @misitebao in [PR](https://github.com/wailsapp/wails/pull/2483)
|
- Fixed console printing in `wails generate template`. Fixed by @misitebao in [PR](https://github.com/wailsapp/wails/pull/2483)
|
||||||
|
- Fixed `-skipbindings` flag in `wails dev`. Fixed by @stffabi in [PR](https://github.com/wailsapp/wails/pull/2584)
|
||||||
|
|
||||||
## v2.4.1 - 2023-03-20
|
## v2.4.1 - 2023-03-20
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user