From c2ac4961efa7e2e3474c5e1c6c23a8090ffe2cca Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Sat, 14 Aug 2021 19:24:29 +1000 Subject: [PATCH] [windows-x] Don't process assets when building --- v2/pkg/commands/build/build.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/v2/pkg/commands/build/build.go b/v2/pkg/commands/build/build.go index f48872cf5..168264bb1 100644 --- a/v2/pkg/commands/build/build.go +++ b/v2/pkg/commands/build/build.go @@ -2,6 +2,7 @@ package build import ( "fmt" + "github.com/leaanthony/slicer" "log" "os" "path/filepath" @@ -113,9 +114,12 @@ func Build(options *Options) (string, error) { } // Build the base assets - err = builder.BuildAssets(options) - if err != nil { - return "", err + userTags := slicer.String(options.UserTags) + if !userTags.Contains("experimental") { + err = builder.BuildAssets(options) + if err != nil { + return "", err + } } // If we are building for windows, we will need to generate the asset bundle before