diff --git a/scripts/bootstrap.ps1 b/scripts/bootstrap.ps1 index 1eaf1c598335ca..8603647b31c1a5 100644 --- a/scripts/bootstrap.ps1 +++ b/scripts/bootstrap.ps1 @@ -426,5 +426,10 @@ Read more about vcpkg telemetry at docs/about/privacy.md Write-Verbose "Placing vcpkg.exe in the correct location" Copy-Item "$vcpkgReleaseDir\vcpkg.exe" "$vcpkgRootDir\vcpkg.exe" -Copy-Item "$vcpkgReleaseDir\vcpkgmetricsuploader.exe" "$vcpkgRootDir\scripts\vcpkgmetricsuploader.exe" + +if (-not $disableMetrics) +{ + Copy-Item "$vcpkgReleaseDir\vcpkgmetricsuploader.exe" "$vcpkgRootDir\scripts\vcpkgmetricsuploader.exe" +} + Remove-Item "$vcpkgReleaseDir" -Force -Recurse -ErrorAction SilentlyContinue diff --git a/toolsrc/dirs.proj b/toolsrc/dirs.proj index 7729c989792961..960374bffd18cb 100644 --- a/toolsrc/dirs.proj +++ b/toolsrc/dirs.proj @@ -5,7 +5,7 @@ - +