diff options
| author | ruki <[email protected]> | 2023-09-14 22:37:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-09-14 22:37:37 +0800 |
| commit | 7f8321f74261cdb39c9ce0c3ecab6a8e28cfda28 (patch) | |
| tree | 2a95c5486855028e2589651a104141da3159fcd3 /xmake/plugins/lua/main.lua | |
| parent | 6d2a1dc8f7a33e07d0ab33d13b51a31d30ea4d41 (diff) | |
remote run lua commands
Diffstat (limited to 'xmake/plugins/lua/main.lua')
| -rw-r--r-- | xmake/plugins/lua/main.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xmake/plugins/lua/main.lua b/xmake/plugins/lua/main.lua index cf0ed80a1..437d69870 100644 --- a/xmake/plugins/lua/main.lua +++ b/xmake/plugins/lua/main.lua @@ -22,6 +22,8 @@ import("core.base.option") import("core.sandbox.module") import("core.sandbox.sandbox") +import("core.project.project") +import("private.service.remote_build.action", {alias = "remote_build_action"}) -- get all lua scripts function scripts() @@ -159,6 +161,11 @@ end function main() + -- do action for remote if we are in the project directory? + if os.isfile(project.rootfile()) and remote_build_action.enabled() then + return remote_build_action() + end + -- list builtin scripts if option.get("list") then return _list() |
