mirror of
https://github.com/kevin-DL/revel-cmd.git
synced 2026-01-22 06:55:20 +00:00
Merge pull request #17 from anonx/fix819
Use a separate directory for revel project binaries
This commit is contained in:
@@ -61,7 +61,9 @@ func Build(buildFlags ...string) (app *App, compileError *revel.Error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
revel.ERROR.Fatalln("Failure importing", revel.ImportPath)
|
revel.ERROR.Fatalln("Failure importing", revel.ImportPath)
|
||||||
}
|
}
|
||||||
binName := path.Join(pkg.BinDir, path.Base(revel.BasePath))
|
|
||||||
|
// Binary path is a combination of $GOBIN/revel.d directory, app's import path and its name.
|
||||||
|
binName := path.Join(pkg.BinDir, "revel.d", revel.ImportPath, path.Base(revel.BasePath))
|
||||||
|
|
||||||
// Change binary path for Windows build
|
// Change binary path for Windows build
|
||||||
goos := runtime.GOOS
|
goos := runtime.GOOS
|
||||||
|
|||||||
Reference in New Issue
Block a user