Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e65023b

Browse filesBrowse files
committed
Merge pull request revel#761 from sprij/fix-456-cross-compiling-windows-path
Fixing cross-compiling issue revel#456 setting windows path from linux
2 parents f5cb6c2 + 273a5e9 commit e65023b
Copy full SHA for e65023b

File tree

Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-1
lines changed

‎harness/build.go

Copy file name to clipboard
100644100755
Expand all lines: harness/build.go
+7-1Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,13 @@ func Build() (app *App, compileError *revel.Error) {
6262
revel.ERROR.Fatalln("Failure importing", revel.ImportPath)
6363
}
6464
binName := path.Join(pkg.BinDir, path.Base(revel.BasePath))
65-
if runtime.GOOS == "windows" {
65+
66+
// Change binary path for Windows build
67+
goos := runtime.GOOS
68+
if goosEnv := os.Getenv("GOOS"); goosEnv != "" {
69+
goos = goosEnv
70+
}
71+
if goos == "windows" {
6672
binName += ".exe"
6773
}
6874

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.