mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 23:21:58 +08:00
[v2] Default project path to cwd
This commit is contained in:
parent
1ee9cf41e2
commit
20f82cbde4
@ -71,6 +71,11 @@ func Build(options *Options) (string, error) {
|
|||||||
}
|
}
|
||||||
options.ProjectData = projectData
|
options.ProjectData = projectData
|
||||||
|
|
||||||
|
// Add default path if it doesn't exist
|
||||||
|
if projectData.Path == "" {
|
||||||
|
projectData.Path = cwd
|
||||||
|
}
|
||||||
|
|
||||||
// Set build directory
|
// Set build directory
|
||||||
options.BuildDirectory = filepath.Join(options.ProjectData.Path, "build", "bin")
|
options.BuildDirectory = filepath.Join(options.ProjectData.Path, "build", "bin")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user