build: Fix wrong windows bundle tar files path separator (#5478)

Fix #5473.
 
Signed-off-by: shm12 <shm.bia@gmail.com>
This commit is contained in:
shm12
2022-12-19 11:59:25 +02:00
committed by GitHub
parent 34f6939a97
commit 30356a7fc2
2 changed files with 28 additions and 4 deletions
+4 -2
View File
@@ -12,6 +12,7 @@ import (
"errors"
"fmt"
"io"
"path/filepath"
"regexp"
"sort"
"strings"
@@ -453,9 +454,10 @@ func (c *Compiler) initBundle() error {
sort.Strings(modules)
for _, module := range modules {
path := filepath.ToSlash(load.Files.Modules[module].Name)
result.Modules = append(result.Modules, bundle.ModuleFile{
URL: load.Files.Modules[module].Name,
Path: load.Files.Modules[module].Name,
URL: path,
Path: path,
Parsed: load.Files.Modules[module].Parsed,
Raw: load.Files.Modules[module].Raw,
})