From 604dc6ace3e835ca69cd5e37f817fd44e5f67fb9 Mon Sep 17 00:00:00 2001 From: Lea Anthony Date: Tue, 31 Aug 2021 19:47:40 +1000 Subject: [PATCH] [windows] Rename assetdir json key --- v2/internal/project/project.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/v2/internal/project/project.go b/v2/internal/project/project.go index c90a98974..1824b98e2 100644 --- a/v2/internal/project/project.go +++ b/v2/internal/project/project.go @@ -14,7 +14,7 @@ type Project struct { /*** Application Data ***/ Name string `json:"name"` - AssetDirectory string `json:"asset_directory"` + AssetDirectory string `json:"assetdir"` BuildCommand string `json:"frontend:build"` InstallCommand string `json:"frontend:install"` @@ -79,18 +79,12 @@ func Load(projectPath string) (*Project, error) { // Fix up our project paths result.filename = projectFile - result.Path = filepath.ToSlash(projectPath) + "/" // Create default name if not given if result.Name == "" { result.Name = "wailsapp" } - // Set default assets directory if none given - if result.BuildDir == "" { - result.BuildDir = filepath.Join(result.Path, "build") - } - // Fix up OutputFilename switch runtime.GOOS { case "windows":