feat: integrate performance upgrade and agent inspection tooling
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$root = [IO.Path]::GetFullPath((Join-Path $PSScriptRoot '../../..'))
|
||||
$destination = Join-Path $root 'Artifacts/AgentSupport/BaselineContext'
|
||||
New-Item -ItemType Directory -Force -Path $destination | Out-Null
|
||||
$module = Join-Path $root 'Assets/Modules/ShrinkContext.Core'
|
||||
$files = git -C $module ls-tree -r --name-only HEAD Runtime
|
||||
foreach ($file in $files) {
|
||||
if (-not $file.EndsWith('.cs')) { continue }
|
||||
$target = Join-Path $destination $file
|
||||
New-Item -ItemType Directory -Force -Path ([IO.Path]::GetDirectoryName($target)) | Out-Null
|
||||
$source = (git -C $module show "HEAD:$file") -join "`n"
|
||||
[IO.File]::WriteAllText($target, $source.Replace('ShrinkContext', 'BaselineContext'), [Text.UTF8Encoding]::new($false))
|
||||
}
|
||||
git -C $module rev-parse HEAD | Set-Content -Encoding utf8 (Join-Path $destination 'revision.txt')
|
||||
Reference in New Issue
Block a user