cmd/ebitenmobile: bug fix: failed to resolve dependencies

Something was changed by updating gomobile (76ac6878050a2eef81867f2c6c21108e59919e8f),
and an additional go-mod-tidy is now required.
This commit is contained in:
Hajime Hoshi 2023-12-16 19:51:48 +09:00
parent 9fe6f1e62c
commit d6439c9e6c

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
}