mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-13 20:42:07 +01:00
cmd/ebitenmobile: Update gomobile version
This change also eliminates a hack for golang/go#36668
This commit is contained in:
parent
bb60818e8d
commit
f396b258e2
@ -22,7 +22,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
)
|
)
|
||||||
|
|
||||||
const gomobileHash = "82c397c4c5279f331dce14d734fda7060e4a3691"
|
const gomobileHash = "2b26a4705d2481ef30846d291bd450445e2b5bdd"
|
||||||
|
|
||||||
func runCommand(command string, args []string, env []string) error {
|
func runCommand(command string, args []string, env []string) error {
|
||||||
if buildX || buildN {
|
if buildX || buildN {
|
||||||
@ -90,19 +90,6 @@ func prepareGomobileCommands() error {
|
|||||||
os.Chdir(pwd)
|
os.Chdir(pwd)
|
||||||
}()
|
}()
|
||||||
|
|
||||||
// Hack to enable go-list at the temporary directory.
|
|
||||||
f, err := os.Create("main.go")
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
defer f.Close()
|
|
||||||
if _, err := f.WriteString("package main\n"); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
if err := f.Sync(); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
if err := runGo("mod", "init", "ebitenmobiletemporary"); err != nil {
|
if err := runGo("mod", "init", "ebitenmobiletemporary"); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user