path.Join replaced by filepath.Join due to incorrect management of separators on Windows

This commit is contained in:
Jeryagor
2014-04-11 23:32:22 +02:00
parent a11342d6e7
commit 4d8c648a53

View File

@@ -100,13 +100,13 @@ func buildApp(args []string) {
mustRenderTemplate(
runShPath,
path.Join(revel.RevelPath, "../cmd/revel", "package_run.sh.template"),
filepath.Join(revel.RevelPath, "../cmd/revel", "package_run.sh.template"),
tmplData)
mustChmod(runShPath, 0755)
mustRenderTemplate(
path.Join(destPath, "run.bat"),
path.Join(revel.RevelPath, "../cmd/revel", "package_run.bat.template"),
filepath.Join(destPath, "run.bat"),
filepath.Join(revel.RevelPath, "../cmd/revel", "package_run.bat.template"),
tmplData)
}