summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/xpack.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-07-04 01:11:23 +0800
committerGitHub <[email protected]>2026-07-04 01:11:23 +0800
commit83369f6bea88b1820329d2a2addbbf640aa792aa (patch)
tree1043728cc2d194297cf4ed5c018b412565f5a45c /xmake/plugins/pack/xpack.lua
parent06741e43d5f4a6af4fe99f0899b1cd9beb495d48 (diff)
parent88b7498887609aa7808f68aff73c2af81918e07a (diff)
Merge pull request #7634 from xmake-io/xpack
add filter support for xpack
Diffstat (limited to 'xmake/plugins/pack/xpack.lua')
-rw-r--r--xmake/plugins/pack/xpack.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/xmake/plugins/pack/xpack.lua b/xmake/plugins/pack/xpack.lua
index fbd53ae22..312878a78 100644
--- a/xmake/plugins/pack/xpack.lua
+++ b/xmake/plugins/pack/xpack.lua
@@ -436,7 +436,9 @@ end
-- get the install files
function xpack:installfiles()
- return match_copyfiles(self, "installfiles", self:installdir())
+ return match_copyfiles(self, "installfiles", self:installdir(), {filter = function (value)
+ return filter.handle(value, self)
+ end})
end
-- get the installed root directory, this is just a temporary sandbox installation path,
@@ -457,7 +459,9 @@ end
-- get the source files
function xpack:sourcefiles()
- return match_copyfiles(self, "sourcefiles", self:sourcedir())
+ return match_copyfiles(self, "sourcefiles", self:sourcedir(), {filter = function (value)
+ return filter.handle(value, self)
+ end})
end
-- get the source root directory