diff options
| author | ruki <[email protected]> | 2026-07-02 23:37:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-07-02 23:37:37 +0800 |
| commit | 88b7498887609aa7808f68aff73c2af81918e07a (patch) | |
| tree | 62b48e50438e54a74893b746213a5c307dd9c6af /xmake/plugins/pack/xpack.lua | |
| parent | 57486069377ec952ab1e5e3288fa3d4d93d2131b (diff) | |
add filter support for xpackxpack
Diffstat (limited to 'xmake/plugins/pack/xpack.lua')
| -rw-r--r-- | xmake/plugins/pack/xpack.lua | 8 |
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 |
