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 (
"fmt"
"github.com/leaanthony/slicer"
"log"
"os"
"path/filepath"
@ -113,10 +114,13 @@ func Build(options *Options) (string, error) {
}
// Build the base assets
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
// compilation. This will be a .syso file in the project root