mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 22:55:48 +01:00
[v2] Default project path to cwd
This commit is contained in:
parent
1ee9cf41e2
commit
20f82cbde4
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue