From 5f5daf64c504e1103a355f45bf925a5149b03e24 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 9 Aug 2026 18:06:16 +0800 Subject: move templates dir --- xmake/actions/create/template.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'xmake/actions/create/template.lua') diff --git a/xmake/actions/create/template.lua b/xmake/actions/create/template.lua index 1279c1d35..e18015514 100644 --- a/xmake/actions/create/template.lua +++ b/xmake/actions/create/template.lua @@ -33,8 +33,9 @@ end -- get all template roots with extra meta information -- -- priority: --- 1. repo: /templates (including builtin repo templates) +-- 1. repo: /templates -- 2. global: /templates +-- 3. builtin: /templates function rootinfos() local results = {} @@ -54,6 +55,10 @@ function rootinfos() if os.isdir(dir) then table.insert(results, {kind = "global", dir = dir}) end + dir = path.join(os.programdir(), "templates") + if os.isdir(dir) then + table.insert(results, {kind = "builtin", dir = dir}) + end return results end -- cgit v1.3.1