Normalize asset paths (fixes #103)

This commit is contained in:
Jakob Borg 2014-03-26 21:09:53 +01:00
parent e37441627f
commit 17a21102b3

View File

@ -63,7 +63,7 @@ func walkerFor(basePath string) filepath.WalkFunc {
name, _ = filepath.Rel(basePath, name) name, _ = filepath.Rel(basePath, name)
assets = append(assets, asset{ assets = append(assets, asset{
Name: name, Name: filepath.ToSlash(name),
HexData: fmt.Sprintf("%x", buf.Bytes()), HexData: fmt.Sprintf("%x", buf.Bytes()),
}) })
} }