diff --git a/src/Update/Program.cs b/src/Update/Program.cs index 24c564075..280958fed 100644 --- a/src/Update/Program.cs +++ b/src/Update/Program.cs @@ -404,16 +404,16 @@ public void Releasify(string package, string targetDir = null, string packagesDi new DirectoryInfo(pkgPath).GetAllFilesRecursively() .Where(x => Utility.FileIsLikelyPEImage(x.Name)) - .ForEachAsync(async x => { - if (isPEFileSigned(x.FullName)) { + .ForEach(x => { + if (isPEFileSigned(x.FullName)) + { this.Log().Info("{0} is already signed, skipping", x.FullName); return; } this.Log().Info("About to sign {0}", x.FullName); - await signPEFile(x.FullName, signingOpts); - }, 1) - .Wait(); + signPEFile(x.FullName, signingOpts).Wait(); + }); }); processed.Add(rp.ReleasePackageFile);