Do not try to sign non-existing files

This commit is contained in:
Kenneth Skovhede
2024-10-03 17:37:25 +02:00
parent 2dfaa29bab
commit 37b35dfe2c
+2 -1
View File
@@ -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)