diff --git a/jbinary.go b/jbinary.go index 43691a2..954973f 100644 --- a/jbinary.go +++ b/jbinary.go @@ -14,7 +14,6 @@ import ( "time" "os/exec" "syscall" - "runtime" "net/http" "archive/tar" "compress/gzip" @@ -264,7 +263,7 @@ func downloadJRE(workDir string){ if *flagArchitecture == "amd64" { arch="64" } - if runtime.GOOS == "windows" { + if *flagPlatform == "windows" { ossystem="win" }else{ arch=""