Skip to content

move templates to repository#7368

Merged
waruqi merged 3 commits intodevfrom
templates
Mar 3, 2026
Merged

move templates to repository#7368
waruqi merged 3 commits intodevfrom
templates

Conversation

@waruqi
Copy link
Member

@waruqi waruqi commented Mar 3, 2026

  • Before adding new features and new modules, please go to issues to submit the relevant feature description first.
  • Write good commit messages and use the same coding conventions as the rest of the project.
  • Please commit code to dev branch and we will merge into master branch in feature
  • Ensure your edited codes with four spaces instead of TAB.

  • 增加新特性和新模块之前,请先到issues提交相关特性说明,经过讨论评估确认后,再进行相应的代码提交,避免做无用工作。
  • 编写友好可读的提交信息,并使用与工程代码相同的代码规范,代码请用4个空格字符代替tab缩进。
  • 请提交代码到dev分支,如果通过,我们会在特定时间合并到master分支上。
  • 为了规范化提交日志的格式,commit消息,不要用中文,请用英文描述。

@waruqi waruqi added this to the v3.0.8 milestone Mar 3, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refactors the project's template management system by relocating all existing project templates into a new xmake/repository/templates directory. This change aims to consolidate template resources, making them discoverable through a unified repository mechanism, and simplifies the internal logic for template path resolution.

Highlights

  • Template Relocation: All built-in project templates have been moved from the xmake/templates directory to xmake/repository/templates to centralize template management within the repository structure.
  • Template Discovery Logic Update: The template.lua file's logic for discovering template roots was updated to reflect the new repository-based template location and to streamline the priority order for template lookup, removing the explicit 'builtin' template path.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • xmake/actions/create/template.lua
    • Updated template root discovery logic to include built-in repository templates.
    • Removed explicit reference to a separate 'builtin' template directory from the priority list.
  • xmake/repository/templates/c++/console/src/main.cpp
    • Moved from xmake/templates/c++/console/src/main.cpp to this location.
  • xmake/repository/templates/c++/console/xmake.lua
    • Moved from xmake/templates/c++/console/xmake.lua to this location.
  • xmake/repository/templates/c++/module/binary/.gitignore
    • Moved from xmake/templates/c++/module/binary/.gitignore to this location.
  • xmake/repository/templates/c++/module/binary/modules/binary/bar/.gitignore
    • Moved from xmake/templates/c++/module/binary/modules/binary/bar/.gitignore to this location.
  • xmake/repository/templates/c++/module/binary/modules/binary/bar/src/add.cpp
    • Moved from xmake/templates/c++/module/binary/modules/binary/bar/src/add.cpp to this location.
  • xmake/repository/templates/c++/module/binary/modules/binary/bar/src/sub.cpp
    • Moved from xmake/templates/c++/module/binary/modules/binary/bar/src/sub.cpp to this location.
  • xmake/repository/templates/c++/module/binary/modules/binary/bar/xmake.lua
    • Moved from xmake/templates/c++/module/binary/modules/binary/bar/xmake.lua to this location.
  • xmake/repository/templates/c++/module/binary/src/main.cpp
    • Moved from xmake/templates/c++/module/binary/src/main.cpp to this location.
  • xmake/repository/templates/c++/module/binary/xmake.lua
    • Moved from xmake/templates/c++/module/binary/xmake.lua to this location.
  • xmake/repository/templates/c++/module/shared/.gitignore
    • Moved from xmake/templates/c++/module/shared/.gitignore to this location.
  • xmake/repository/templates/c++/module/shared/modules/shared/foo/src/foo.cpp
    • Moved from xmake/templates/c++/module/shared/modules/shared/foo/src/foo.cpp to this location.
  • xmake/repository/templates/c++/module/shared/modules/shared/foo/xmake.lua
    • Moved from xmake/templates/c++/module/shared/modules/shared/foo/xmake.lua to this location.
  • xmake/repository/templates/c++/module/shared/src/main.cpp
    • Moved from xmake/templates/c++/module/shared/src/main.cpp to this location.
  • xmake/repository/templates/c++/module/shared/xmake.lua
    • Moved from xmake/templates/c++/module/shared/xmake.lua to this location.
  • xmake/repository/templates/c++/qt/console/src/main.cpp
    • Moved from xmake/templates/c++/qt/console/src/main.cpp to this location.
  • xmake/repository/templates/c++/qt/console/xmake.lua
    • Moved from xmake/templates/c++/qt/console/xmake.lua to this location.
  • xmake/repository/templates/c++/qt/quickapp/src/main.cpp
    • Moved from xmake/templates/c++/qt/quickapp/src/main.cpp to this location.
  • xmake/repository/templates/c++/qt/quickapp/src/main.qml
    • Moved from xmake/templates/c++/qt/quickapp/src/main.qml to this location.
  • xmake/repository/templates/c++/qt/quickapp/src/qml.qrc
    • Moved from xmake/templates/c++/qt/quickapp/src/qml.qrc to this location.
  • xmake/repository/templates/c++/qt/quickapp/xmake.lua
    • Moved from xmake/templates/c++/qt/quickapp/xmake.lua to this location.
  • xmake/repository/templates/c++/qt/quickapp_static/src/main.cpp
    • Moved from xmake/templates/c++/qt/quickapp_static/src/main.cpp to this location.
  • xmake/repository/templates/c++/qt/quickapp_static/src/main.qml
    • Moved from xmake/templates/c++/qt/quickapp_static/src/main.qml to this location.
  • xmake/repository/templates/c++/qt/quickapp_static/src/qml.qrc
    • Moved from xmake/templates/c++/qt/quickapp_static/src/qml.qrc to this location.
  • xmake/repository/templates/c++/qt/quickapp_static/xmake.lua
    • Moved from xmake/templates/c++/qt/quickapp_static/xmake.lua to this location.
  • xmake/repository/templates/c++/qt/shared/src/demo.cpp
    • Moved from xmake/templates/c++/qt/shared/src/demo.cpp to this location.
  • xmake/repository/templates/c++/qt/shared/src/demo.h
    • Moved from xmake/templates/c++/qt/shared/src/demo.h to this location.
  • xmake/repository/templates/c++/qt/shared/src/demo_global.h
    • Moved from xmake/templates/c++/qt/shared/src/demo_global.h to this location.
  • xmake/repository/templates/c++/qt/shared/xmake.lua
    • Moved from xmake/templates/c++/qt/shared/xmake.lua to this location.
  • xmake/repository/templates/c++/qt/static/src/demo.cpp
    • Moved from xmake/templates/c++/qt/static/src/demo.cpp to this location.
  • xmake/repository/templates/c++/qt/static/src/demo.h
    • Moved from xmake/templates/c++/qt/static/src/demo.h to this location.
  • xmake/repository/templates/c++/qt/static/xmake.lua
    • Moved from xmake/templates/c++/qt/static/xmake.lua to this location.
  • xmake/repository/templates/c++/qt/widgetapp/src/main.cpp
    • Moved from xmake/templates/c++/qt/widgetapp/src/main.cpp to this location.
  • xmake/repository/templates/c++/qt/widgetapp/src/mainwindow.cpp
    • Moved from xmake/templates/c++/qt/widgetapp/src/mainwindow.cpp to this location.
  • xmake/repository/templates/c++/qt/widgetapp/src/mainwindow.h
    • Moved from xmake/templates/c++/qt/widgetapp/src/mainwindow.h to this location.
  • xmake/repository/templates/c++/qt/widgetapp/src/mainwindow.ui
    • Moved from xmake/templates/c++/qt/widgetapp/src/mainwindow.ui to this location.
  • xmake/repository/templates/c++/qt/widgetapp/xmake.lua
    • Moved from xmake/templates/c++/qt/widgetapp/xmake.lua to this location.
  • xmake/repository/templates/c++/qt/widgetapp_static/src/main.cpp
    • Moved from xmake/templates/c++/qt/widgetapp_static/src/main.cpp to this location.
  • xmake/repository/templates/c++/qt/widgetapp_static/src/mainwindow.cpp
    • Moved from xmake/templates/c++/qt/widgetapp_static/src/mainwindow.cpp to this location.
  • xmake/repository/templates/c++/qt/widgetapp_static/src/mainwindow.h
    • Moved from xmake/templates/c++/qt/widgetapp_static/src/mainwindow.h to this location.
  • xmake/repository/templates/c++/qt/widgetapp_static/src/mainwindow.ui
    • Moved from xmake/templates/c++/qt/widgetapp_static/src/mainwindow.ui to this location.
  • xmake/repository/templates/c++/qt/widgetapp_static/xmake.lua
    • Moved from xmake/templates/c++/qt/widgetapp_static/xmake.lua to this location.
  • xmake/repository/templates/c++/shared/src/foo.cpp
    • Moved from xmake/templates/c++/shared/src/foo.cpp to this location.
  • xmake/repository/templates/c++/shared/src/foo.h
    • Moved from xmake/templates/c++/shared/src/foo.h to this location.
  • xmake/repository/templates/c++/shared/src/main.cpp
    • Moved from xmake/templates/c++/shared/src/main.cpp to this location.
  • xmake/repository/templates/c++/shared/xmake.lua
    • Moved from xmake/templates/c++/shared/xmake.lua to this location.
  • xmake/repository/templates/c++/static/src/foo.cpp
    • Moved from xmake/templates/c++/static/src/foo.cpp to this location.
  • xmake/repository/templates/c++/static/src/foo.h
    • Moved from xmake/templates/c++/static/src/foo.h to this location.
  • xmake/repository/templates/c++/static/src/main.cpp
    • Moved from xmake/templates/c++/static/src/main.cpp to this location.
  • xmake/repository/templates/c++/static/xmake.lua
    • Moved from xmake/templates/c++/static/xmake.lua to this location.
  • xmake/repository/templates/c++/wxwidgets/src/main.cpp
    • Moved from xmake/templates/c++/wxwidgets/src/main.cpp to this location.
  • xmake/repository/templates/c++/wxwidgets/xmake.lua
    • Moved from xmake/templates/c++/wxwidgets/xmake.lua to this location.
  • xmake/repository/templates/c++/xmake/cli/src/lni/main.cpp
    • Moved from xmake/templates/c++/xmake/cli/src/lni/main.cpp to this location.
  • xmake/repository/templates/c++/xmake/cli/src/lua/main.lua
    • Moved from xmake/templates/c++/xmake/cli/src/lua/main.lua to this location.
  • xmake/repository/templates/c++/xmake/cli/xmake.lua
    • Moved from xmake/templates/c++/xmake/cli/xmake.lua to this location.
  • xmake/repository/templates/c/console/src/main.c
    • Moved from xmake/templates/c/console/src/main.c to this location.
  • xmake/repository/templates/c/console/xmake.lua
    • Moved from xmake/templates/c/console/xmake.lua to this location.
  • xmake/repository/templates/c/module/binary/.gitignore
    • Moved from xmake/templates/c/module/binary/.gitignore to this location.
  • xmake/repository/templates/c/module/binary/modules/binary/bar/.gitignore
    • Moved from xmake/templates/c/module/binary/modules/binary/bar/.gitignore to this location.
  • xmake/repository/templates/c/module/binary/modules/binary/bar/src/add.c
    • Moved from xmake/templates/c/module/binary/modules/binary/bar/src/add.c to this location.
  • xmake/repository/templates/c/module/binary/modules/binary/bar/src/sub.c
    • Moved from xmake/templates/c/module/binary/modules/binary/bar/src/sub.c to this location.
  • xmake/repository/templates/c/module/binary/modules/binary/bar/xmake.lua
    • Moved from xmake/templates/c/module/binary/modules/binary/bar/xmake.lua to this location.
  • xmake/repository/templates/c/module/binary/src/main.c
    • Moved from xmake/templates/c/module/binary/src/main.c to this location.
  • xmake/repository/templates/c/module/binary/xmake.lua
    • Moved from xmake/templates/c/module/binary/xmake.lua to this location.
  • xmake/repository/templates/c/module/shared/.gitignore
    • Moved from xmake/templates/c/module/shared/.gitignore to this location.
  • xmake/repository/templates/c/module/shared/modules/shared/foo/src/foo.c
    • Moved from xmake/templates/c/module/shared/modules/shared/foo/src/foo.c to this location.
  • xmake/repository/templates/c/module/shared/modules/shared/foo/xmake.lua
    • Moved from xmake/templates/c/module/shared/modules/shared/foo/xmake.lua to this location.
  • xmake/repository/templates/c/module/shared/src/main.c
    • Moved from xmake/templates/c/module/shared/src/main.c to this location.
  • xmake/repository/templates/c/module/shared/xmake.lua
    • Moved from xmake/templates/c/module/shared/xmake.lua to this location.
  • xmake/repository/templates/c/shared/src/foo.c
    • Moved from xmake/templates/c/shared/src/foo.c to this location.
  • xmake/repository/templates/c/shared/src/foo.h
    • Moved from xmake/templates/c/shared/src/foo.h to this location.
  • xmake/repository/templates/c/shared/src/main.c
    • Moved from xmake/templates/c/shared/src/main.c to this location.
  • xmake/repository/templates/c/shared/xmake.lua
    • Moved from xmake/templates/c/shared/xmake.lua to this location.
  • xmake/repository/templates/c/static/src/foo.c
    • Moved from xmake/templates/c/static/src/foo.c to this location.
  • xmake/repository/templates/c/static/src/foo.h
    • Moved from xmake/templates/c/static/src/foo.h to this location.
  • xmake/repository/templates/c/static/src/main.c
    • Moved from xmake/templates/c/static/src/main.c to this location.
  • xmake/repository/templates/c/static/xmake.lua
    • Moved from xmake/templates/c/static/xmake.lua to this location.
  • xmake/repository/templates/c/xmake/cli/src/lni/main.c
    • Moved from xmake/templates/c/xmake/cli/src/lni/main.c to this location.
  • xmake/repository/templates/c/xmake/cli/src/lua/main.lua
    • Moved from xmake/templates/c/xmake/cli/src/lua/main.lua to this location.
  • xmake/repository/templates/c/xmake/cli/xmake.lua
    • Moved from xmake/templates/c/xmake/cli/xmake.lua to this location.
  • xmake/repository/templates/cuda/console/src/main.cu
    • Moved from xmake/templates/cuda/console/src/main.cu to this location.
  • xmake/repository/templates/cuda/console/xmake.lua
    • Moved from xmake/templates/cuda/console/xmake.lua to this location.
  • xmake/repository/templates/cuda/shared/inc/lib.cuh
    • Moved from xmake/templates/cuda/shared/inc/lib.cuh to this location.
  • xmake/repository/templates/cuda/shared/src/lib.cu
    • Moved from xmake/templates/cuda/shared/src/lib.cu to this location.
  • xmake/repository/templates/cuda/shared/xmake.lua
    • Moved from xmake/templates/cuda/shared/xmake.lua to this location.
  • xmake/repository/templates/cuda/static/inc/lib.cuh
    • Moved from xmake/templates/cuda/static/inc/lib.cuh to this location.
  • xmake/repository/templates/cuda/static/src/lib.cu
    • Moved from xmake/templates/cuda/static/src/lib.cu to this location.
  • xmake/repository/templates/cuda/static/xmake.lua
    • Moved from xmake/templates/cuda/static/xmake.lua to this location.
  • xmake/repository/templates/dlang/console/src/main.d
    • Moved from xmake/templates/dlang/console/src/main.d to this location.
  • xmake/repository/templates/dlang/console/xmake.lua
    • Moved from xmake/templates/dlang/console/xmake.lua to this location.
  • xmake/repository/templates/dlang/shared/src/interfaces.d
    • Moved from xmake/templates/dlang/shared/src/interfaces.d to this location.
  • xmake/repository/templates/dlang/shared/src/main.d
    • Moved from xmake/templates/dlang/shared/src/main.d to this location.
  • xmake/repository/templates/dlang/shared/xmake.lua
    • Moved from xmake/templates/dlang/shared/xmake.lua to this location.
  • xmake/repository/templates/dlang/static/src/interfaces.d
    • Moved from xmake/templates/dlang/static/src/interfaces.d to this location.
  • xmake/repository/templates/dlang/static/src/main.d
    • Moved from xmake/templates/dlang/static/src/main.d to this location.
  • xmake/repository/templates/dlang/static/xmake.lua
    • Moved from xmake/templates/dlang/static/xmake.lua to this location.
  • xmake/repository/templates/fortran/console/src/main.f90
    • Moved from xmake/templates/fortran/console/src/main.f90 to this location.
  • xmake/repository/templates/fortran/console/xmake.lua
    • Moved from xmake/templates/fortran/console/xmake.lua to this location.
  • xmake/repository/templates/fortran/shared/src/main.f90
    • Moved from xmake/templates/fortran/shared/src/main.f90 to this location.
  • xmake/repository/templates/fortran/shared/src/test.f90
    • Moved from xmake/templates/fortran/shared/src/test.f90 to this location.
  • xmake/repository/templates/fortran/shared/xmake.lua
    • Moved from xmake/templates/fortran/shared/xmake.lua to this location.
  • xmake/repository/templates/fortran/static/src/main.f90
    • Moved from xmake/templates/fortran/static/src/main.f90 to this location.
  • xmake/repository/templates/fortran/static/src/test.f90
    • Moved from xmake/templates/fortran/static/src/test.f90 to this location.
  • xmake/repository/templates/fortran/static/xmake.lua
    • Moved from xmake/templates/fortran/static/xmake.lua to this location.
  • xmake/repository/templates/go/console/src/main.go
    • Moved from xmake/templates/go/console/src/main.go to this location.
  • xmake/repository/templates/go/console/xmake.lua
    • Moved from xmake/templates/go/console/xmake.lua to this location.
  • xmake/repository/templates/go/static/src/main.go
    • Moved from xmake/templates/go/static/src/main.go to this location.
  • xmake/repository/templates/go/static/src/module/add.go
    • Moved from xmake/templates/go/static/src/module/add.go to this location.
  • xmake/repository/templates/go/static/src/module/sub.go
    • Moved from xmake/templates/go/static/src/module/sub.go to this location.
  • xmake/repository/templates/go/static/src/test.go
    • Moved from xmake/templates/go/static/src/test.go to this location.
  • xmake/repository/templates/go/static/xmake.lua
    • Moved from xmake/templates/go/static/xmake.lua to this location.
  • xmake/repository/templates/kotlin/console/src/main.kt
    • Moved from xmake/templates/kotlin/console/src/main.kt to this location.
  • xmake/repository/templates/kotlin/console/xmake.lua
    • Moved from xmake/templates/kotlin/console/xmake.lua to this location.
  • xmake/repository/templates/kotlin/shared/src/foo.kt
    • Moved from xmake/templates/kotlin/shared/src/foo.kt to this location.
  • xmake/repository/templates/kotlin/shared/src/main.c
    • Moved from xmake/templates/kotlin/shared/src/main.c to this location.
  • xmake/repository/templates/kotlin/shared/xmake.lua
    • Moved from xmake/templates/kotlin/shared/xmake.lua to this location.
  • xmake/repository/templates/kotlin/static/src/foo.kt
    • Moved from xmake/templates/kotlin/static/src/foo.kt to this location.
  • xmake/repository/templates/kotlin/static/src/main.c
    • Moved from xmake/templates/kotlin/static/src/main.c to this location.
  • xmake/repository/templates/kotlin/static/xmake.lua
    • Moved from xmake/templates/kotlin/static/xmake.lua to this location.
  • xmake/repository/templates/nim/console/src/main.nim
    • Moved from xmake/templates/nim/console/src/main.nim to this location.
  • xmake/repository/templates/nim/console/xmake.lua
    • Moved from xmake/templates/nim/console/xmake.lua to this location.
  • xmake/repository/templates/nim/shared/src/foo.nim
    • Moved from xmake/templates/nim/shared/src/foo.nim to this location.
  • xmake/repository/templates/nim/shared/src/main.nim
    • Moved from xmake/templates/nim/shared/src/main.nim to this location.
  • xmake/repository/templates/nim/shared/xmake.lua
    • Moved from xmake/templates/nim/shared/xmake.lua to this location.
  • xmake/repository/templates/nim/static/src/foo.nim
    • Moved from xmake/templates/nim/static/src/foo.nim to this location.
  • xmake/repository/templates/nim/static/src/main.nim
    • Moved from xmake/templates/nim/static/src/main.nim to this location.
  • xmake/repository/templates/nim/static/xmake.lua
    • Moved from xmake/templates/nim/static/xmake.lua to this location.
  • xmake/repository/templates/objc++/console/src/main.mm
    • Moved from xmake/templates/objc++/console/src/main.mm to this location.
  • xmake/repository/templates/objc++/console/xmake.lua
    • Moved from xmake/templates/objc++/console/xmake.lua to this location.
  • xmake/repository/templates/objc++/xcode/bundle/src/Info.plist
    • Moved from xmake/templates/objc++/xcode/bundle/src/Info.plist to this location.
  • xmake/repository/templates/objc++/xcode/bundle/src/test.h
    • Moved from xmake/templates/objc++/xcode/bundle/src/test.h to this location.
  • xmake/repository/templates/objc++/xcode/bundle/src/test.mm
    • Moved from xmake/templates/objc++/xcode/bundle/src/test.mm to this location.
  • xmake/repository/templates/objc++/xcode/bundle/xmake.lua
    • Moved from xmake/templates/objc++/xcode/bundle/xmake.lua to this location.
  • xmake/repository/templates/objc++/xcode/framework/src/Info.plist
    • Moved from xmake/templates/objc++/xcode/framework/src/Info.plist to this location.
  • xmake/repository/templates/objc++/xcode/framework/src/test.h
    • Moved from xmake/templates/objc++/xcode/framework/src/test.h to this location.
  • xmake/repository/templates/objc++/xcode/framework/src/test.mm
    • Moved from xmake/templates/objc++/xcode/framework/src/test.mm to this location.
  • xmake/repository/templates/objc++/xcode/framework/xmake.lua
    • Moved from xmake/templates/objc++/xcode/framework/xmake.lua to this location.
  • xmake/repository/templates/objc/console/src/main.m
    • Moved from xmake/templates/objc/console/src/main.m to this location.
  • xmake/repository/templates/objc/console/xmake.lua
    • Moved from xmake/templates/objc/console/xmake.lua to this location.
  • xmake/repository/templates/objc/xcode/bundle/src/Info.plist
    • Moved from xmake/templates/objc/xcode/bundle/src/Info.plist to this location.
  • xmake/repository/templates/objc/xcode/bundle/src/test.h
    • Moved from xmake/templates/objc/xcode/bundle/src/test.h to this location.
  • xmake/repository/templates/objc/xcode/bundle/src/test.m
    • Moved from xmake/templates/objc/xcode/bundle/src/test.m to this location.
  • xmake/repository/templates/objc/xcode/bundle/xmake.lua
    • Moved from xmake/templates/objc/xcode/bundle/xmake.lua to this location.
  • xmake/repository/templates/objc/xcode/framework/src/Info.plist
    • Moved from xmake/templates/objc/xcode/framework/src/Info.plist to this location.
  • xmake/repository/templates/objc/xcode/framework/src/test.h
    • Moved from xmake/templates/objc/xcode/framework/src/test.h to this location.
  • xmake/repository/templates/objc/xcode/framework/src/test.m
    • Moved from xmake/templates/objc/xcode/framework/src/test.m to this location.
  • xmake/repository/templates/objc/xcode/framework/xmake.lua
    • Moved from xmake/templates/objc/xcode/framework/xmake.lua to this location.
  • xmake/repository/templates/objc/xcode/iosapp/src/AppDelegate.h
    • Moved from xmake/templates/objc/xcode/iosapp/src/AppDelegate.h to this location.
  • xmake/repository/templates/objc/xcode/iosapp/src/AppDelegate.m
    • Moved from xmake/templates/objc/xcode/iosapp/src/AppDelegate.m to this location.
  • xmake/repository/templates/objc/xcode/iosapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json
    • Moved from xmake/templates/objc/xcode/iosapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json to this location.
  • xmake/repository/templates/objc/xcode/iosapp/src/Assets.xcassets/Contents.json
    • Moved from xmake/templates/objc/xcode/iosapp/src/Assets.xcassets/Contents.json to this location.
  • xmake/repository/templates/objc/xcode/iosapp/src/Base.lproj/LaunchScreen.storyboard
    • Moved from xmake/templates/objc/xcode/iosapp/src/Base.lproj/LaunchScreen.storyboard to this location.
  • xmake/repository/templates/objc/xcode/iosapp/src/Base.lproj/Main.storyboard
    • Moved from xmake/templates/objc/xcode/iosapp/src/Base.lproj/Main.storyboard to this location.
  • xmake/repository/templates/objc/xcode/iosapp/src/Info.plist
    • Moved from xmake/templates/objc/xcode/iosapp/src/Info.plist to this location.
  • xmake/repository/templates/objc/xcode/iosapp/src/SceneDelegate.h
    • Moved from xmake/templates/objc/xcode/iosapp/src/SceneDelegate.h to this location.
  • xmake/repository/templates/objc/xcode/iosapp/src/SceneDelegate.m
    • Moved from xmake/templates/objc/xcode/iosapp/src/SceneDelegate.m to this location.
  • xmake/repository/templates/objc/xcode/iosapp/src/ViewController.h
    • Moved from xmake/templates/objc/xcode/iosapp/src/ViewController.h to this location.
  • xmake/repository/templates/objc/xcode/iosapp/src/ViewController.m
    • Moved from xmake/templates/objc/xcode/iosapp/src/ViewController.m to this location.
  • xmake/repository/templates/objc/xcode/iosapp/src/main.m
    • Moved from xmake/templates/objc/xcode/iosapp/src/main.m to this location.
  • xmake/repository/templates/objc/xcode/iosapp/xmake.lua
    • Moved from xmake/templates/objc/xcode/iosapp/xmake.lua to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.h
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.h to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.m
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/app/AppDelegate.m to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/Contents.json
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/app/Assets.xcassets/Contents.json to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/LaunchScreen.storyboard
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/LaunchScreen.storyboard to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/Main.storyboard
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/app/Base.lproj/Main.storyboard to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/Info.plist
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/app/Info.plist to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.h
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.h to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.m
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/app/SceneDelegate.m to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.h
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.h to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.m
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/app/ViewController.m to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/app/main.m
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/app/main.m to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/framework/Info.plist
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/framework/Info.plist to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/framework/test.h
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/framework/test.h to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/src/framework/test.m
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/src/framework/test.m to this location.
  • xmake/repository/templates/objc/xcode/iosapp_with_framework/xmake.lua
    • Moved from xmake/templates/objc/xcode/iosapp_with_framework/xmake.lua to this location.
  • xmake/repository/templates/objc/xcode/macapp/src/AppDelegate.h
    • Moved from xmake/templates/objc/xcode/macapp/src/AppDelegate.h to this location.
  • xmake/repository/templates/objc/xcode/macapp/src/AppDelegate.m
    • Moved from xmake/templates/objc/xcode/macapp/src/AppDelegate.m to this location.
  • xmake/repository/templates/objc/xcode/macapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json
    • Moved from xmake/templates/objc/xcode/macapp/src/Assets.xcassets/AppIcon.appiconset/Contents.json to this location.
  • xmake/repository/templates/objc/xcode/macapp/src/Assets.xcassets/Contents.json
    • Moved from xmake/templates/objc/xcode/macapp/src/Assets.xcassets/Contents.json to this location.
  • xmake/repository/templates/objc/xcode/macapp/src/Base.lproj/Main.storyboard
    • Moved from xmake/templates/objc/xcode/macapp/src/Base.lproj/Main.storyboard to this location.
  • xmake/repository/templates/objc/xcode/macapp/src/Info.plist
    • Moved from xmake/templates/objc/xcode/macapp/src/Info.plist to this location.
  • xmake/repository/templates/objc/xcode/macapp/src/ViewController.h
    • Moved from xmake/templates/objc/xcode/macapp/src/ViewController.h to this location.
  • xmake/repository/templates/objc/xcode/macapp/src/ViewController.m
    • Moved from xmake/templates/objc/xcode/macapp/src/ViewController.m to this location.
  • xmake/repository/templates/objc/xcode/macapp/src/main.m
    • Moved from xmake/templates/objc/xcode/macapp/src/main.m to this location.
  • xmake/repository/templates/objc/xcode/macapp/src/test.entitlements
    • Moved from xmake/templates/objc/xcode/macapp/src/test.entitlements to this location.
  • xmake/repository/templates/objc/xcode/macapp/xmake.lua
    • Moved from xmake/templates/objc/xcode/macapp/xmake.lua to this location.
  • xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.h
    • Moved from xmake/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.h to this location.
  • xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.m
    • Moved from xmake/templates/objc/xcode/macapp_with_framework/src/app/AppDelegate.m to this location.
  • xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json
    • Moved from xmake/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/AppIcon.appiconset/Contents.json to this location.
  • xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/Contents.json
    • Moved from xmake/templates/objc/xcode/macapp_with_framework/src/app/Assets.xcassets/Contents.json to this location.
  • xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Base.lproj/Main.storyboard
    • Moved from xmake/templates/objc/xcode/macapp_with_framework/src/app/Base.lproj/Main.storyboard to this location.
  • xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/Info.plist
    • Moved from xmake/templates/objc/xcode/macapp_with_framework/src/app/Info.plist to this location.
  • xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/ViewController.h
    • Moved from xmake/templates/objc/xcode/macapp_with_framework/src/app/ViewController.h to this location.
  • xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/ViewController.m
    • Moved from xmake/templates/objc/xcode/macapp_with_framework/src/app/ViewController.m to this location.
  • xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/main.m
    • Moved from xmake/templates/objc/xcode/macapp_with_framework/src/app/main.m to this location.
  • xmake/repository/templates/objc/xcode/macapp_with_framework/src/app/test.entitlements
    • Moved from xmake/templates/objc/xcode/macapp_with_framework/src/app/test.entitlements to this location.
  • xmake/repository/templates/objc/xcode/macapp_with_framework/src/framework/Info.plist
    • Moved from xmake/templates/objc/xcode/macapp_with_framework/src/framework/Info.plist to this location.
  • xmake/repository/templates/objc/xcode/macapp_with_framework/src/framework/test.h
    • Moved from xmake/templates/objc/xcode/macapp_with_framework/src/framework/test.h to this location.
  • xmake/repository/templates/objc/xcode/macapp_with_framework/src/framework/test.m
    • Moved from xmake/templates/objc/xcode/macapp_with_framework/src/framework/test.m to this location.
  • xmake/repository/templates/objc/xcode/macapp_with_framework/xmake.lua
    • Moved from xmake/templates/objc/xcode/macapp_with_framework/xmake.lua to this location.
  • xmake/repository/templates/pascal/console/src/main.pas
    • Moved from xmake/templates/pascal/console/src/main.pas to this location.
  • xmake/repository/templates/pascal/console/xmake.lua
    • Moved from xmake/templates/pascal/console/xmake.lua to this location.
  • xmake/repository/templates/pascal/shared/src/foo.pas
    • Moved from xmake/templates/pascal/shared/src/foo.pas to this location.
  • xmake/repository/templates/pascal/shared/src/main.pas
    • Moved from xmake/templates/pascal/shared/src/main.pas to this location.
  • xmake/repository/templates/pascal/shared/xmake.lua
    • Moved from xmake/templates/pascal/shared/xmake.lua to this location.
  • xmake/repository/templates/rust/console/src/main.rs
    • Moved from xmake/templates/rust/console/src/main.rs to this location.
  • xmake/repository/templates/rust/console/xmake.lua
    • Moved from xmake/templates/rust/console/xmake.lua to this location.
  • xmake/repository/templates/rust/shared/src/foo.rs
    • Moved from xmake/templates/rust/shared/src/foo.rs to this location.
  • xmake/repository/templates/rust/shared/src/main.rs
    • Moved from xmake/templates/rust/shared/src/main.rs to this location.
  • xmake/repository/templates/rust/shared/xmake.lua
    • Moved from xmake/templates/rust/shared/xmake.lua to this location.
  • xmake/repository/templates/rust/static/src/foo.rs
    • Moved from xmake/templates/rust/static/src/foo.rs to this location.
  • xmake/repository/templates/rust/static/src/main.rs
    • Moved from xmake/templates/rust/static/src/main.rs to this location.
  • xmake/repository/templates/rust/static/xmake.lua
    • Moved from xmake/templates/rust/static/xmake.lua to this location.
  • xmake/repository/templates/swift/console/src/main.swift
    • Moved from xmake/templates/swift/console/src/main.swift to this location.
  • xmake/repository/templates/swift/console/xmake.lua
    • Moved from xmake/templates/swift/console/xmake.lua to this location.
  • xmake/repository/templates/vala/console/src/main.vala
    • Moved from xmake/templates/vala/console/src/main.vala to this location.
  • xmake/repository/templates/vala/console/xmake.lua
    • Moved from xmake/templates/vala/console/xmake.lua to this location.
  • xmake/repository/templates/vala/shared/src/main.vala
    • Moved from xmake/templates/vala/shared/src/main.vala to this location.
  • xmake/repository/templates/vala/shared/src/mymath.vala
    • Moved from xmake/templates/vala/shared/src/mymath.vala to this location.
  • xmake/repository/templates/vala/shared/xmake.lua
    • Moved from xmake/templates/vala/shared/xmake.lua to this location.
  • xmake/repository/templates/vala/static/src/main.vala
    • Moved from xmake/templates/vala/static/src/main.vala to this location.
  • xmake/repository/templates/vala/static/src/mymath.vala
    • Moved from xmake/templates/vala/static/src/mymath.vala to this location.
  • xmake/repository/templates/vala/static/xmake.lua
    • Moved from xmake/templates/vala/static/xmake.lua to this location.
  • xmake/repository/templates/zig/console/src/main.zig
    • Moved from xmake/templates/zig/console/src/main.zig to this location.
  • xmake/repository/templates/zig/console/xmake.lua
    • Moved from xmake/templates/zig/console/xmake.lua to this location.
  • xmake/repository/templates/zig/shared/src/main.zig
    • Moved from xmake/templates/zig/shared/src/main.zig to this location.
  • xmake/repository/templates/zig/shared/src/test.zig
    • Moved from xmake/templates/zig/shared/src/test.zig to this location.
  • xmake/repository/templates/zig/shared/xmake.lua
    • Moved from xmake/templates/zig/shared/xmake.lua to this location.
  • xmake/repository/templates/zig/static/src/main.zig
    • Moved from xmake/templates/zig/static/src/main.zig to this location.
  • xmake/repository/templates/zig/static/src/test.zig
    • Moved from xmake/templates/zig/static/src/test.zig to this location.
  • xmake/repository/templates/zig/static/xmake.lua
    • Moved from xmake/templates/zig/static/xmake.lua to this location.
Activity
  • No specific review comments or activity have been recorded for this pull request beyond the initial submission.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the project template system by moving the built-in templates into a repository structure. This involves moving a large number of template files from xmake/templates to xmake/repository/templates. Consequently, the logic in xmake/actions/create/template.lua has been simplified to remove the special handling for a builtin template source, consolidating template discovery to repositories and the global user directory. The changes appear consistent with the goal of centralizing template management.

@waruqi waruqi force-pushed the templates branch 3 times, most recently from 38d4dca to 6697684 Compare March 3, 2026 14:39
@waruqi waruqi merged commit bf24224 into dev Mar 3, 2026
73 of 74 checks passed
@waruqi waruqi deleted the templates branch March 3, 2026 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant