From 08b945fbc14ef9362939432c5c205dc756de4078 Mon Sep 17 00:00:00 2001 From: Andrew Lock Date: Wed, 29 Nov 2023 17:04:55 +0000 Subject: [PATCH] Ensure we sign the exe that we ship in the MSI --- tracer/build/_build/Build.Gitlab.cs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tracer/build/_build/Build.Gitlab.cs b/tracer/build/_build/Build.Gitlab.cs index 8d212b825786..6009daa48321 100644 --- a/tracer/build/_build/Build.Gitlab.cs +++ b/tracer/build/_build/Build.Gitlab.cs @@ -20,10 +20,10 @@ partial class Build { Target SignDlls => _ => _ - .Description("Sign the dlls produced by building the Tracer, Profiler, and Monitoring home directory") + .Description("Sign the dlls produced by building the Tracer, Profiler, and Monitoring home directory, as well as the dd-dotnet exes") .Unlisted() .Requires(() => IsWin) - .After(BuildTracerHome, BuildProfilerHome, BuildNativeLoader, CreateRootDescriptorsFile) + .After(BuildTracerHome, BuildProfilerHome, BuildNativeLoader, CreateRootDescriptorsFile, BuildDdDotnet, CopyDdDotnet) .Before(PackNuGet, BuildMsi, ZipMonitoringHome) .Executes(() => { @@ -34,7 +34,11 @@ partial class Build var homeDlls = MonitoringHomeDirectory.GlobFiles("**/Datadog*.dll"); var waf = MonitoringHomeDirectory.GlobFiles("**/ddwaf.dll"); - var dlls = homeDlls.Concat(dllsInBin).Concat(waf); + var ddDotnet = MonitoringHomeDirectory.GlobFiles("**/*.exe") + .Concat(ArtifactsDirectory.GlobFiles("**/*.exe")) + .Concat(MonitoringHomeDirectory.GlobFiles("**/dd-dotnet")) + .Concat(ArtifactsDirectory.GlobFiles("**/dd-dotnet")); + var dlls = homeDlls.Concat(dllsInBin).Concat(waf).Concat(ddDotnet); SignFiles(dlls.ToList()); });