diff options
| author | ruki <[email protected]> | 2023-11-25 00:42:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-25 00:42:14 +0800 |
| commit | e393610e3f53aed9293882a668045fd67f1e1cd5 (patch) | |
| tree | 33c9e6391211f514d48c5cc29f4a234ef6f4a09c /core | |
| parent | e297fa3482ddfd802f949ea6d5a8bb79a2fbf167 (diff) | |
fix makeself
Diffstat (limited to 'core')
| -rw-r--r-- | core/xpack.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/xpack.lua b/core/xpack.lua index d0d139317..e789423c2 100644 --- a/core/xpack.lua +++ b/core/xpack.lua @@ -79,6 +79,7 @@ xpack_component("LongPath") xpack("xmakesrc") set_formats("srczip", "srctargz", "runself") set_basename("xmake-v$(version)") + set_prefixdir("xmake-$(version)") before_package(function (package) import("devel.git") @@ -95,8 +96,7 @@ xpack("xmakesrc") end end - local prefixdir = "xmake-" .. package:version() - local extraconf = {rootdir = rootdir, prefixdir = prefixdir} + local extraconf = {rootdir = rootdir} package:add("sourcefiles", path.join(rootdir, "core/**|src/pdcurses/**|src/luajit/**|src/tbox/tbox/src/demo/**"), extraconf) package:add("sourcefiles", path.join(rootdir, "xmake/**"), extraconf) package:add("sourcefiles", path.join(rootdir, "*.md"), extraconf) |
