Skip to content

Commit

Permalink
Fix bad building if trying to build win binary from linux
Browse files Browse the repository at this point in the history
  • Loading branch information
segator committed Jul 14, 2018
1 parent 63723a2 commit 553627f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions jbinary.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"time"
"os/exec"
"syscall"
"runtime"
"net/http"
"archive/tar"
"compress/gzip"
Expand Down Expand Up @@ -264,7 +263,7 @@ func downloadJRE(workDir string){
if *flagArchitecture == "amd64" {
arch="64"
}
if runtime.GOOS == "windows" {
if *flagPlatform == "windows" {
ossystem="win"
}else{
arch=""
Expand Down

0 comments on commit 553627f

Please sign in to comment.