summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/batchcmds.lua
diff options
context:
space:
mode:
authorbinLep <[email protected]>2025-04-27 11:29:50 +0800
committerbinLep <[email protected]>2025-04-27 11:29:50 +0800
commita0030c2c4fc23fd344dc5f8d9b2c18bc0d7c6b39 (patch)
treed8c01e66824369d74badd6c2c61bfa4ee33c4ab9 /xmake/plugins/pack/batchcmds.lua
parent00ff68e7319def8c566443aa513454ad86ccecd7 (diff)
update the search regex for installing packages
Diffstat (limited to 'xmake/plugins/pack/batchcmds.lua')
-rw-r--r--xmake/plugins/pack/batchcmds.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/pack/batchcmds.lua b/xmake/plugins/pack/batchcmds.lua
index 7e7313abe..e9a7f4c24 100644
--- a/xmake/plugins/pack/batchcmds.lua
+++ b/xmake/plugins/pack/batchcmds.lua
@@ -92,7 +92,7 @@ function _get_target_package_libfiles(target, opt)
if pkg:enabled() and pkg:get("libfiles") then
for _, libfile in ipairs(table.wrap(pkg:get("libfiles"))) do
local filename = path.filename(libfile)
- if filename:endswith(".dll") or filename:endswith(".so") or filename:find("%.so%.%d+$") or filename:endswith(".dylib") then
+ if filename:endswith(".dll") or filename:endswith(".so") or filename:find("%.so[%.%d+]+$") or filename:endswith(".dylib") then
table.insert(libfiles, libfile)
end
end