From 1b8fa7aa749ba332c7e3bdaea5f3d4520bcc6062 Mon Sep 17 00:00:00 2001 From: Daniel Widgren Date: Tue, 7 Jul 2026 13:24:09 +0200 Subject: [PATCH] chore: bump templates to v0.2.0 (self-contained demos) The demos now bundle their arena server lua/, so init --template + asobi dev is a complete recipe. Bump Ref v0.1.0 -> v0.2.0 and assert the bundled lua/match.lua in the e2e fetch test. --- internal/template/template.go | 6 +++--- internal/template/template_test.go | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) 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) + } }