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