src\BatchSignUtil.cs (31)
106_signTool.RemoveStrongNameSign(fileSignInfo.FullPath);
119var toRepackSet = _batchData.FilesToSign.Where(x => x.ShouldRepack)?.Select(x => x.FullPath)?.ToHashSet();
158Path.GetExtension(fileInfo.FullPath) == ".exe").ToArray();
174_log.LogMessage(MessageImportance.Normal, $"Extracting engine from {file.FullPath}");
175if (!RunWixTool("wix.exe", $"burn detach {file.FullPath} -engine {engineFileName}",
178_log.LogError($"Failed to extract engine from {file.FullPath}");
200_log.LogMessage(MessageImportance.Normal, $"Attaching engine {engine.Key.FileName} to {engine.Value.FullPath}");
205$"burn reattach {engine.Value.FullPath} -engine {engine.Key.FileName} -o {engine.Value.FullPath}", workingDirectory,
208_log.LogError($"Failed to attach engine to {engine.Value.FullPath}");
225var repackList = files.Where(w => toRepackSet.Contains(w.FullPath)).ToList();
247FileInfo fileInfo = new FileInfo(file.FullPath);
263toRepackSet.Remove(file.FullPath);
276toRepackSet.Remove(file.FullPath);
289_log.LogError($"Don't know how to repack file '{file.FullPath}'");
301trackedSet.Contains(x.FileSignInfo.FileContentKey)) && !toRepackSet.Contains(x.FileSignInfo.FullPath)
471foreach (var fileName in _batchData.FilesToSign.OrderBy(x => x.FullPath))
594using (var stream = File.OpenRead(file.FullPath))
602var status = _signTool.VerifySignedDeb(log, file.FullPath);
607var status = _signTool.VerifySignedRpm(log, file.FullPath);
612var status = _signTool.VerifySignedPowerShellFile(file.FullPath);
617var status = _signTool.VerifySignedPkgOrAppBundle(_log, file.FullPath, _signTool.PkgToolPath);
622var status = _signTool.VerifySignedNuGet(file.FullPath);
627var status = _signTool.VerifySignedVSIX(file.FullPath);
646_log.LogError($"{fileType} {file.FullPath} is not signed properly.");
650_log.LogMessage(MessageImportance.Low, $"Signing status of {file.FullPath} could not be determined.");
654_log.LogMessage(MessageImportance.Low, $"{fileType} {file.FullPath} is signed properly");
665_log.LogMessage($"Skipping strong-name validation for {file.FullPath}.");
671if (_signTool.VerifyStrongNameSign(file.FullPath) != SigningStatus.Signed)
673_log.LogError($"Assembly {file.FullPath} is not strong-name signed correctly.");
677_log.LogMessage(MessageImportance.Low, $"Assembly {file.FullPath} strong-name signature is valid.");