working on windows version
This commit is contained in:
parent
b6af1549a3
commit
99a5934575
@ -77,7 +77,9 @@ func (i *InstanceManager)checkJavaVersion(instance Instance){
|
||||
tokens := []int{0, 0, 0}
|
||||
tokens[0], _ = strconv.Atoi(tokensStr[0])
|
||||
tokens[1], _ = strconv.Atoi(tokensStr[1])
|
||||
if len(tokensStr) > 2 {
|
||||
tokens[2], _ = strconv.Atoi(tokensStr[2])
|
||||
}
|
||||
javaVer := 8
|
||||
if tokens[1] == 17 {
|
||||
javaVer = 17
|
||||
|
@ -59,7 +59,7 @@ func (j *JavaManager)InstallJavaVer(version int) {
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
target := filepath.Join(path, strings.SplitN(entry.Name, string(os.PathSeparator), 2)[1])
|
||||
target := filepath.Join(path, strings.SplitN(entry.Name, "/", 2)[1])
|
||||
if !entry.IsDir() {
|
||||
rc, err := entry.Open()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user