mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
[v2] Default project path to cwd
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user