diff options
| author | ruki <[email protected]> | 2023-11-18 00:42:27 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-18 00:42:27 +0800 |
| commit | 8a593a2d3ad47e57064516643fd8cb8442cbb52d (patch) | |
| tree | ad565098d347bcc293f0f635cf6e6816a9d7054d /core | |
| parent | 4ec6682dea22ec5a2e4b818700288e625f761d52 (diff) | |
add set_prefixdir
Diffstat (limited to 'core')
| -rw-r--r-- | core/xpack.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/xpack.lua b/core/xpack.lua index 86c87fc83..a84c839d5 100644 --- a/core/xpack.lua +++ b/core/xpack.lua @@ -19,6 +19,10 @@ xpack("xmake") end end package:set("basename", "xmake-v$(version)." .. arch) + local format = package:format() + if format == "zip" then + package:set("prefixdir", "xmake") + end end) before_package(function (package) |
