cmd/ebitenmobile: bug fix: failed to resolve dependencies

Something was changed by updating gomobile (76ac6878050a2eef81867f2c6c21108e59919e8f),
and an additional go-mod-tidy is now required.

Closes #2887
This commit is contained in:
Hajime Hoshi 2023-12-16 19:51:48 +09:00
parent 2c967dd24e
commit 3be6c78e85

View File

@ -191,6 +191,10 @@ import (
return tmp, err
}
// The newly added Go files like gobind.go might add new dependencies.
if err := runGo("mod", "tidy"); err != nil {
return tmp, err
}
if err := runGo("build", "-o", exe(filepath.Join("bin", "gobind")), "-tags", "ebitenmobilegobind", filepath.Join("src", "gobind.go")); err != nil {
return tmp, err
}