mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 05:30:52 +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
|
||||
|
||||
// Add default path if it doesn't exist
|
||||
if projectData.Path == "" {
|
||||
projectData.Path = cwd
|
||||
}
|
||||
|
||||
// Set build directory
|
||||
options.BuildDirectory = filepath.Join(options.ProjectData.Path, "build", "bin")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user