From 37b35dfe2cf2a580b385cb8727c910a3a8899eaa Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Thu, 3 Oct 2024 17:37:25 +0200 Subject: [PATCH] Do not try to sign non-existing files --- ReleaseBuilder/Build/Command.Compile.Post.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ReleaseBuilder/Build/Command.Compile.Post.cs b/ReleaseBuilder/Build/Command.Compile.Post.cs index 1417c91ac..5d3234a7b 100644 --- a/ReleaseBuilder/Build/Command.Compile.Post.cs +++ b/ReleaseBuilder/Build/Command.Compile.Post.cs @@ -234,7 +234,8 @@ public static partial class Command // Executables cannot be signed before their dependencies are signed // So they are placed last in the list - var executables = ExecutableRenames.Values.Select(x => Path.Combine(binDir, x)); + var executables = ExecutableRenames.Values.Select(x => Path.Combine(binDir, x)) + .Where(File.Exists); var signtargets = Directory.EnumerateFiles(binDir, "*", SearchOption.AllDirectories) .Except(executables)