From 3fbe4f71c41f35e9d5bf70855cd3adae59b4951f Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Tue, 12 Apr 2022 20:13:05 +1000 Subject: [PATCH] Ensure there's a default wailsJS dir --- v2/pkg/commands/build/build.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/v2/pkg/commands/build/build.go b/v2/pkg/commands/build/build.go index 797989bfe..3e423573d 100644 --- a/v2/pkg/commands/build/build.go +++ b/v2/pkg/commands/build/build.go @@ -81,6 +81,11 @@ func Build(options *Options) (string, error) { projectData.Path = cwd } + // wails js dir + if projectData.WailsJSDir != "" { + options.WailsJSDir = projectData.WailsJSDir + } + // Set build directory options.BuildDirectory = filepath.Join(options.ProjectData.Path, "build", "bin")