[windows-x] Add skip frontend build option

This commit is contained in:
Lea Anthony
2021-08-15 21:27:33 +10:00
parent b7cd36921e
commit 38c507a605
2 changed files with 5 additions and 1 deletions

View File

@@ -80,6 +80,9 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
runDelve := false
command.BoolFlag("delve", "Runs the built binary in delve for debugging", &runDelve)
skipFrontend := false
command.BoolFlag("s", "Skips building the frontend", &skipFrontend)
command.Action(func() error {
quiet := verbosity == 0
@@ -175,6 +178,7 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
Compiler: compilerCommand,
KeepAssets: keepAssets,
Verbosity: verbosity,
IgnoreFrontend: skipFrontend,
Compress: compress,
CompressFlags: compressFlags,
UserTags: userTags,
@@ -209,6 +213,7 @@ func AddBuildSubcommand(app *clir.Cli, w io.Writer) {
fmt.Fprintf(w, "Platform: \t%s\n", buildOptions.Platform)
fmt.Fprintf(w, "Arch: \t%s\n", buildOptions.Arch)
fmt.Fprintf(w, "Compiler: \t%s\n", compilerPath)
fmt.Fprintf(w, "Skip Frontend: \t%t\n", skipFrontend)
fmt.Fprintf(w, "Compress: \t%t\n", buildOptions.Compress)
fmt.Fprintf(w, "Build Mode: \t%s\n", buildModeText)
fmt.Fprintf(w, "Package: \t%t\n", buildOptions.Pack)

View File

@@ -216,7 +216,6 @@ func (f *Frontend) processRequest(req *edge.ICoreWebView2WebResourceRequest, arg
}
func (f *Frontend) processMessage(message string) {
println("msg:", message)
if message == "drag" {
err := f.startDrag()
if err != nil {