From 53db680b23d11d1deaedf6b5fe74028551983591 Mon Sep 17 00:00:00 2001 From: Bill Wert Date: Thu, 27 Jul 2023 10:00:01 -0700 Subject: [PATCH] Generate assets json wrapper (#35343) --- eng/scripts/generate-assets-json-wrapper.ps1 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 eng/scripts/generate-assets-json-wrapper.ps1 diff --git a/eng/scripts/generate-assets-json-wrapper.ps1 b/eng/scripts/generate-assets-json-wrapper.ps1 new file mode 100644 index 0000000000000..511fc15f1c5dd --- /dev/null +++ b/eng/scripts/generate-assets-json-wrapper.ps1 @@ -0,0 +1,14 @@ +# get the temp directory +$temp = [System.IO.Path]::GetTempPath() +if (!(test-path $temp)) { + throw "Unable to find temp directory" +} + +$testProxyPath = join-path $temp "test-proxy" +if (!(test-path $testProxyPath)) { + throw "Unable to find test proxy directory. Run a test proxy test to install it." +} +# Need the path separator for search paths, not file paths. +$pathsep = if ($env:OS -eq "Windows_NT") { ";" } else { ":" } +$env:Path = $env:PATH + $pathsep + $testProxyPath +Invoke-Expression "$(join-path $PSScriptRoot ../common/testproxy/transition-scripts/generate-assets-json.ps1) -TestProxyExe Azure.Sdk.Tools.TestProxy $args"