mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-02-04 15:04:28 +01:00
parent
145f9f9588
commit
9313e3ad0d
@ -20,7 +20,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const gomobileHash = "82c397c4c5279f331dce14d734fda7060e4a3691"
|
const gomobileHash = "82c397c4c5279f331dce14d734fda7060e4a3691"
|
||||||
@ -55,8 +54,7 @@ func runGo(args ...string) error {
|
|||||||
env := []string{
|
env := []string{
|
||||||
"GO111MODULE=on",
|
"GO111MODULE=on",
|
||||||
}
|
}
|
||||||
gocmd := filepath.Join(runtime.GOROOT(), "bin", "go")
|
return runCommand("go", args, env)
|
||||||
return runCommand(gocmd, args, env)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func prepareGomobileCommands() error {
|
func prepareGomobileCommands() error {
|
||||||
|
@ -22,7 +22,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"runtime"
|
|
||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
@ -46,8 +45,7 @@ func goEnv(name string) string {
|
|||||||
if val := os.Getenv(name); val != "" {
|
if val := os.Getenv(name); val != "" {
|
||||||
return val
|
return val
|
||||||
}
|
}
|
||||||
gocmd := filepath.Join(runtime.GOROOT(), "bin", "go")
|
val, err := exec.Command("go", "env", name).Output()
|
||||||
val, err := exec.Command(gocmd, "env", name).Output()
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user