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 cf1a91a344
commit cb0f4c4378

View File

@ -106,7 +106,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