Explorar o código

Fixing linux wont launch issue

Toby Chui %!s(int64=3) %!d(string=hai) anos
pai
achega
67fa81abb2
Modificáronse 2 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      fs.go
  2. BIN=BIN
      launcher.exe

+ 3 - 1
fs.go

@@ -60,7 +60,7 @@ func autoDetectExecutable() string {
 		}
 	} else {
 		if fileExists("arozos") {
-			return "arozos"
+			return "./arozos"
 		}
 	}
 
@@ -68,6 +68,8 @@ func autoDetectExecutable() string {
 	binaryExecPath := "arozos_" + runtime.GOOS + "_" + runtime.GOARCH
 	if runtime.GOOS == "windows" {
 		binaryExecPath += ".exe"
+	} else {
+		binaryExecPath = "./" + binaryExecPath
 	}
 
 	if fileExists(binaryExecPath) {

BIN=BIN
launcher.exe