From 039fd07036252e4fbda054886870aa0d8c349822 Mon Sep 17 00:00:00 2001 From: Shankar Seal <74580197+shankarseal@users.noreply.github.com> Date: Fri, 27 Sep 2024 16:27:51 -0700 Subject: [PATCH] sign installation script. (#127) --- scripts/onebranch/post-build.ps1 | 2 ++ tools/onebranch/onebranch.vcxproj | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/onebranch/post-build.ps1 b/scripts/onebranch/post-build.ps1 index d28c2e67..b1c02c78 100644 --- a/scripts/onebranch/post-build.ps1 +++ b/scripts/onebranch/post-build.ps1 @@ -16,11 +16,13 @@ $OneBranchConfig = $env:ONEBRANCH_CONFIG if ($OneBranchConfig -eq "Debug" -and $OneBranchArch -eq "x64") { xcopy /y build\bin\x64_Debug .\x64\Debug + xcopy /y build\bin\x64_Debug\Install-Extension.ps1 .\scripts\ Get-ChildItem -Path .\build\bin\x64_Debug -Recurse | Remove-Item -Force -Recurse } elseif ($OneBranchConfig -eq "Release" -and $OneBranchArch -eq "x64") { xcopy /y build\bin\x64_Release .\x64\Release + xcopy /y build\bin\x64_Release\Install-Extension.ps1 .\scripts\ Get-ChildItem -Path .\build\bin\x64_Release -Recurse | Remove-Item -Force -Recurse } else diff --git a/tools/onebranch/onebranch.vcxproj b/tools/onebranch/onebranch.vcxproj index 5d21a193..0e9d8c9c 100644 --- a/tools/onebranch/onebranch.vcxproj +++ b/tools/onebranch/onebranch.vcxproj @@ -114,7 +114,10 @@ true - xcopy /yie $(OutDir) $(SolutionDir)build\bin\x64_Debug + + xcopy /yie $(OutDir) $(SolutionDir)build\bin\x64_Debug + xcopy /yie $(SolutionDir)scripts\Install-Extension.ps1 $(SolutionDir)build\bin\x64_Debug\ + @@ -133,7 +136,10 @@ true - xcopy /yie $(OutDir) $(SolutionDir)build\bin\x64_Release + + xcopy /yie $(OutDir) $(SolutionDir)build\bin\x64_Release + xcopy /yie $(SolutionDir)scripts\Install-Extension.ps1 $(SolutionDir)build\bin\x64_Release\ +