fix pathing for windows
This commit is contained in:
parent
05f7bafd56
commit
2c0ea0da67
1 changed files with 6 additions and 6 deletions
|
|
@ -52,17 +52,17 @@ func CopyAssets() {
|
||||||
}
|
}
|
||||||
assetDir = fmt.Sprintf("%s/go/pkg/mod/%s@%s/assets", dirname, modulePath, version)
|
assetDir = fmt.Sprintf("%s/go/pkg/mod/%s@%s/assets", dirname, modulePath, version)
|
||||||
} else {
|
} else {
|
||||||
assetDir = fmt.Sprintf("%s/assets", modulePath)
|
assetDir = filepath.Join(modulePath, "assets")
|
||||||
}
|
}
|
||||||
|
|
||||||
assetDistDir := fmt.Sprintf("%s/dist", assetDir)
|
assetDistDir := filepath.Join(assetDir, "dist")
|
||||||
assetCssDir := fmt.Sprintf("%s/css", assetDir)
|
assetCssDir := filepath.Join(assetDir, "css")
|
||||||
|
|
||||||
cwd := process.GetWorkingDir()
|
cwd := process.GetWorkingDir()
|
||||||
|
|
||||||
destDir := fmt.Sprintf("%s/assets", cwd)
|
destDir := filepath.Join(cwd, "assets")
|
||||||
destDirDist := fmt.Sprintf("%s/dist", destDir)
|
destDirDist := filepath.Join(destDir, "dist")
|
||||||
destDirCss := fmt.Sprintf("%s/css", destDir)
|
destDirCss := filepath.Join(destDir, "css")
|
||||||
|
|
||||||
err := dirutil.CopyDir(assetDistDir, destDirDist, func(path string, exists bool) bool {
|
err := dirutil.CopyDir(assetDistDir, destDirDist, func(path string, exists bool) bool {
|
||||||
return true
|
return true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue