From 4cdc916dff62a95bc64b41e593742582bab2aef6 Mon Sep 17 00:00:00 2001 From: Harrison-Wells-Cyber Date: Wed, 22 Jul 2026 10:04:06 -0700 Subject: [PATCH] Log base64 output file path in build-agent.ps1 Added output for base64 file path after writing. --- tools/build-agent.ps1 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/build-agent.ps1 b/tools/build-agent.ps1 index d00b806..eeacaf5 100644 --- a/tools/build-agent.ps1 +++ b/tools/build-agent.ps1 @@ -15,6 +15,8 @@ $ms = New-Object IO.MemoryStream $gz = New-Object IO.Compression.GzipStream($ms, [IO.Compression.CompressionMode]::Compress) $gz.Write($raw,0,$raw.Length); $gz.Dispose() $b64 = [Convert]::ToBase64String($ms.ToArray()) +$b64Out = Join-Path $RepoRoot "release/agent_assembly.b64" +[IO.File]::WriteAllText($b64Out, $b64, [Text.Encoding]::ASCII) $template = Get-Content (Join-Path $RepoRoot "agent/loader/agent.ps1.tmpl") -Raw $template = $template.Replace('{{.AssemblyB64}}', $b64) $template = $template.Replace('{{.Server}}', '__SERVER__') @@ -23,3 +25,4 @@ $template = $template.Replace('{{.CertPin}}', '__CERT_PIN__') $template = $template.Replace('{{.EnrollToken}}', '__ENROLL_TOKEN__') [IO.File]::WriteAllText($OutFile, $template, [Text.Encoding]::UTF8) Write-Host "Wrote $OutFile" +Write-Host "Wrote $b64Out"