From c8bece859f20a2df975e8c17da2d61e5d3bf0277 Mon Sep 17 00:00:00 2001 From: puke <1129090915@qq.com> Date: Sun, 9 Nov 2025 21:55:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=B7=AF=E5=BE=84=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packaging/windows/build.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/windows/build.py b/packaging/windows/build.py index c0d9bd7..f7cc4d9 100644 --- a/packaging/windows/build.py +++ b/packaging/windows/build.py @@ -476,8 +476,9 @@ class WindowsPackageBuilder: path_str = str(path.relative_to(self.project_root)) for pattern in exclude_patterns: if pattern.endswith('/*'): - # Directory content exclusion - if path_str.startswith(pattern[:-2]): + # Directory content exclusion - must match exact directory name or start with "dirname/" + dir_name = pattern[:-2] + if path_str == dir_name or path_str.startswith(f"{dir_name}/"): return True elif pattern.endswith('*'): # Wildcard pattern