From c46182923c0c8db236953810663fe787b049d283 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Wed, 8 Sep 2021 23:32:48 +1000 Subject: [PATCH] [v2] Add version to wails.json --- v2/internal/project/project.go | 6 ++++++ 1 file changed, 6 insertions(+) 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"