mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
cmd/ebitenmobile: Bug fix: os.WriteFile is not defined at Go 1.15
Updates #1667
This commit is contained in:
parent
cf1a91a344
commit
cb0f4c4378
@ -106,7 +106,7 @@ func prepareGomobileCommands() error {
|
|||||||
if err := runGo("mod", "init", modname); err != nil {
|
if err := runGo("mod", "init", modname); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := os.WriteFile("tools.go", []byte(fmt.Sprintf(`// +build tools
|
if err := ioutil.WriteFile("tools.go", []byte(fmt.Sprintf(`// +build tools
|
||||||
|
|
||||||
package %s
|
package %s
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user