diff --git a/internal/template/template.go b/internal/template/template.go index aaee780..e8570fe 100644 --- a/internal/template/template.go +++ b/internal/template/template.go @@ -27,9 +27,9 @@ type Template struct { } var registry = map[string]Template{ - "defold": {Repo: "asobi-defold-demo", Ref: "v0.1.0", Name: "Defold"}, - "godot": {Repo: "asobi-godot-demo", Ref: "v0.1.0", Name: "Godot"}, - "unity": {Repo: "asobi-unity-demo", Ref: "v0.1.0", Name: "Unity"}, + "defold": {Repo: "asobi-defold-demo", Ref: "v0.2.0", Name: "Defold"}, + "godot": {Repo: "asobi-godot-demo", Ref: "v0.2.0", Name: "Godot"}, + "unity": {Repo: "asobi-unity-demo", Ref: "v0.2.0", Name: "Unity"}, } const ( diff --git a/internal/template/template_test.go b/internal/template/template_test.go index 70e7225..d4b4409 100644 --- a/internal/template/template_test.go +++ b/internal/template/template_test.go @@ -169,4 +169,8 @@ func TestFetchE2E(t *testing.T) { if _, err := os.Stat(filepath.Join(dir, "game.project")); err != nil { t.Errorf("defold template missing game.project: %v", err) } + // Self-contained: the template must bundle the server Lua so `asobi dev` runs. + if _, err := os.Stat(filepath.Join(dir, "lua", "match.lua")); err != nil { + t.Errorf("defold template missing bundled lua/match.lua: %v", err) + } }