mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-10 21:12:01 +08:00
Fix windows paths
This commit is contained in:
parent
0daec29fab
commit
23cb97d314
@ -63,7 +63,7 @@ func NewTemplateList(filenames *mewnlib.FileGroup) *TemplateList {
|
||||
if err != nil {
|
||||
log.Fatalf("corrupt metadata for template: %s", filename)
|
||||
}
|
||||
path := strings.Split(filename, string(filepath.Separator))[0]
|
||||
path := strings.Split(filepath.FromSlash(filename), string(filepath.Separator))[0]
|
||||
thisTemplate := &TemplateDetails{Path: path, Metadata: &metadata}
|
||||
result.details[filename] = thisTemplate
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user