5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-03 04:11:05 +08:00

[windows-x] Don't process assets when building

This commit is contained in:
Lea Anthony 2021-08-14 19:24:29 +10:00
parent 8e84bdfa8d
commit c2ac4961ef

View File

@ -2,6 +2,7 @@ package build
import ( import (
"fmt" "fmt"
"github.com/leaanthony/slicer"
"log" "log"
"os" "os"
"path/filepath" "path/filepath"
@ -113,9 +114,12 @@ func Build(options *Options) (string, error) {
} }
// Build the base assets // Build the base assets
err = builder.BuildAssets(options) userTags := slicer.String(options.UserTags)
if err != nil { if !userTags.Contains("experimental") {
return "", err err = builder.BuildAssets(options)
if err != nil {
return "", err
}
} }
// If we are building for windows, we will need to generate the asset bundle before // If we are building for windows, we will need to generate the asset bundle before