mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 04:29:35 +08:00
[windows-x] Don't process assets when building
This commit is contained in:
parent
8e84bdfa8d
commit
c2ac4961ef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user