diff --git a/v2/internal/project/project.go b/v2/internal/project/project.go index 1bcd1f74..f5f567d2 100644 --- a/v2/internal/project/project.go +++ b/v2/internal/project/project.go @@ -22,6 +22,8 @@ type Project struct { // Directory to generate the API Module WailsJSDir string `json:"wailsjsdir"` + Version string `json:"version"` + /*** Internal Data ***/ // The path to the project directory @@ -80,6 +82,10 @@ func Load(projectPath string) (*Project, error) { // Fix up our project paths result.filename = projectFile + if result.Version == "" { + result.Version = "2" + } + // Create default name if not given if result.Name == "" { result.Name = "wailsapp"