5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-02 19:19:15 +08:00

Ensure there's a default wailsJS dir

This commit is contained in:
Lea Anthony 2022-04-12 20:13:05 +10:00
parent 56206729ef
commit 3fbe4f71c4

View File

@ -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")