diff --git a/cmd/commands/run/watch.go b/cmd/commands/run/watch.go index fb4440d..69d51e3 100644 --- a/cmd/commands/run/watch.go +++ b/cmd/commands/run/watch.go @@ -145,9 +145,9 @@ func AutoBuild(files []string, isgenerate bool) { } beeLogger.Log.Success("Docs generated!") } - + appName := appname if err == nil { - appName := appname + if runtime.GOOS == "windows" { appName += ".exe" } @@ -171,7 +171,7 @@ func AutoBuild(files []string, isgenerate bool) { } beeLogger.Log.Success("Built Successfully!") - Restart(appname) + Restart(appName) } // Kill kills the running command process