diff options
| author | ruki <[email protected]> | 2022-02-28 15:36:40 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-28 15:36:40 +0800 |
| commit | 0b293280a6b695b1dee8f258de9c79172d2527bf (patch) | |
| tree | ada3908b55b471cbc01343fef25d1a2e1a83b008 | |
| parent | c63944eb75b9af3fbcea3fc1035a695c033cb675 (diff) | |
Update install.lua
| -rw-r--r-- | xmake/modules/private/xrepo/action/install.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/xrepo/action/install.lua b/xmake/modules/private/xrepo/action/install.lua index 4dd21ca07..2f3e84969 100644 --- a/xmake/modules/private/xrepo/action/install.lua +++ b/xmake/modules/private/xrepo/action/install.lua @@ -133,7 +133,7 @@ function _install_packages(packages) end if packagefile then assert(os.isfile("xmake.lua"), "xmake.lua not found!") - io.writefile("xmake.lua", "includes(\"" .. packagefile .. "\")\n" .. io.readfile("xmake.lua")) + io.writefile("xmake.lua", ('includes("%s")\ntarget("test", {kind = "phony"})'):format((packagefile:gsub("\\", "/"))) end -- disable xmake-stats |
