cmd/ebitenmobile: Bug fix: os.WriteFile is not defined at Go 1.15

Updates #1667
This commit is contained in:
Hajime Hoshi 2021-06-09 22:58:12 +09:00
parent b30d626e9a
commit 1341b3f471

View File

@ -104,7 +104,7 @@ func prepareGomobileCommands() error {
if err := runGo("mod", "init", modname); err != nil {
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