From 7f8321f74261cdb39c9ce0c3ecab6a8e28cfda28 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 14 Sep 2023 22:37:37 +0800 Subject: remote run lua commands --- xmake/plugins/lua/main.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xmake/plugins/lua/main.lua') 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() -- cgit v1.3.1