mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
fix path name in windows
This commit is contained in:
parent
762beb5c56
commit
1d977c543a
@ -63,7 +63,7 @@ func main() {
|
||||
for _, filename := range filenames {
|
||||
content, _ := ioutil.ReadFile(filename)
|
||||
assets = append(assets, asset{
|
||||
Name: strings.TrimPrefix(filename, "assets/"),
|
||||
Name: strings.TrimPrefix(strings.ReplaceAll(filename, "\\", "/"), "assets/"),
|
||||
Etag: shasum(content),
|
||||
Body: encode(content),
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user