From a0030c2c4fc23fd344dc5f8d9b2c18bc0d7c6b39 Mon Sep 17 00:00:00 2001 From: binLep Date: Sun, 27 Apr 2025 11:29:50 +0800 Subject: update the search regex for installing packages --- xmake/plugins/pack/batchcmds.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/plugins/pack/batchcmds.lua') 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 -- cgit v1.3.1