Skip to content

Commit

Permalink
Add note about why we're providing a custom signTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Sep 26, 2024
1 parent c3573f9 commit 6e605d7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Builders/WindowsBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ public override Uploader CreateUploader()
if (dllPath == null)
Logger.Error("Could not find path for Dlib.dll");

// We're using `signTemplate` here as we need to prefer the system `signtool.exe` in order for it to
// run azure code signing correctly on older windows versions.
//
// This can be changed back to `signParams` if velopack changes the signtool logic to fix this.
string signToolPath = Directory.GetDirectories(@"C:\Program Files (x86)\Windows Kits\10\bin", "*", SearchOption.AllDirectories)
.Select(dir => Path.Combine(dir, @"x64\signtool.exe"))
.Where(File.Exists)
Expand Down

0 comments on commit 6e605d7

Please sign in to comment.