From 79a6853b835edae90ecb926d587b89f93cc0167e192f6994394a872627c52981 Mon Sep 17 00:00:00 2001 From: sisungo Date: Thu, 3 Dec 2026 14:46:03 +0000 Subject: [PATCH] fix: rust auto-pack incorrectly inserts dylib Signed-off-by: sisungo --- lib/rust.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/rust.py b/lib/rust.py index 6a566fb..cb63a57 100644 --- a/lib/rust.py +++ b/lib/rust.py @@ -45,7 +45,9 @@ def _autopack_filter_lib(ent) -> bool: def _autopack_filter_bin(ent) -> bool: - return os.access(ent.path, os.X_OK) and ent.is_file(follow_symlinks=False) + is_executable_file = os.access(ent.path, os.X_OK) and ent.is_file(follow_symlinks=False) + is_not_dylib = not (ent.path.endswith(".so") or ent.path.endswith(".dll") or ent.path.endswith(".dylib")) + return is_executable_file and is_not_dylib def _auto_pack(profiles: list[str], pc: pkgcomposer.PkgComposer):