From 82fcab26b1c18cd8588408c266af8f5d3599f243 Mon Sep 17 00:00:00 2001 From: fufesou <13586388+fufesou@users.noreply.github.com> Date: Sat, 10 Jan 2026 02:01:32 +0800 Subject: [PATCH] refact(sign): skip signed files (#14006) Signed-off-by: fufesou --- res/job.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/res/job.py b/res/job.py index a76b6b5cb..e53105fd3 100755 --- a/res/job.py +++ b/res/job.py @@ -205,11 +205,13 @@ def sign_files(dir_path, only_ext=None): if not only_ext[i].startswith("."): only_ext[i] = "." + only_ext[i] for root, dirs, files in os.walk(dir_path): - if "RustDeskPrinterDriver" in root or "usbmmidd_v2" in root: - continue + is_signed_dir = "RustDeskPrinterDriver" in root or "usbmmidd_v2" in root for file in files: file_path = os.path.join(root, file) _, ext = os.path.splitext(file_path) + # only sign the exe files in signed dirs + if is_signed_dir and ext not in [".exe"]: + continue if only_ext and ext not in only_ext: continue if ext in SIGN_EXTENSIONS: