mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
Run watcher after initial build (#1216)
This commit is contained in:
parent
d36e130315
commit
95d34c510e
1 changed files with 7 additions and 7 deletions
|
|
@ -142,13 +142,6 @@ func AddSubcommand(app *clir.Cli, w io.Writer) error {
|
|||
return err
|
||||
}
|
||||
|
||||
// frontend:dev:watcher command.
|
||||
if command := projectConfig.DevWatcherCommand; command != "" {
|
||||
var devCommandWaitGroup sync.WaitGroup
|
||||
closer := runFrontendDevWatcherCommand(cwd, command, &devCommandWaitGroup)
|
||||
defer closer(&devCommandWaitGroup)
|
||||
}
|
||||
|
||||
buildOptions := generateBuildOptions(flags)
|
||||
buildOptions.Logger = logger
|
||||
buildOptions.UserTags = internal.ParseUserTags(flags.tags)
|
||||
|
|
@ -170,6 +163,13 @@ func AddSubcommand(app *clir.Cli, w io.Writer) error {
|
|||
debugBinaryProcess = newProcess
|
||||
}
|
||||
|
||||
// frontend:dev:watcher command.
|
||||
if command := projectConfig.DevWatcherCommand; command != "" {
|
||||
var devCommandWaitGroup sync.WaitGroup
|
||||
closer := runFrontendDevWatcherCommand(cwd, command, &devCommandWaitGroup)
|
||||
defer closer(&devCommandWaitGroup)
|
||||
}
|
||||
|
||||
// open browser
|
||||
if flags.openBrowser {
|
||||
url := defaultDevServerURL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue