Skip to content

Commit

Permalink
sign installation script. (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
shankarseal committed Sep 27, 2024
1 parent ed59a4f commit 039fd07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions scripts/onebranch/post-build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions tools/onebranch/onebranch.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<PostBuildEvent>
<Command>xcopy /yie $(OutDir) $(SolutionDir)build\bin\x64_Debug</Command>
<Command>
xcopy /yie $(OutDir) $(SolutionDir)build\bin\x64_Debug
xcopy /yie $(SolutionDir)scripts\Install-Extension.ps1 $(SolutionDir)build\bin\x64_Debug\
</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64' And '$(BuildOneBranch)'=='True'">
Expand All @@ -133,7 +136,10 @@
<GenerateDebugInformation>true</GenerateDebugInformation>
</Link>
<PostBuildEvent>
<Command>xcopy /yie $(OutDir) $(SolutionDir)build\bin\x64_Release</Command>
<Command>
xcopy /yie $(OutDir) $(SolutionDir)build\bin\x64_Release
xcopy /yie $(SolutionDir)scripts\Install-Extension.ps1 $(SolutionDir)build\bin\x64_Release\
</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
Expand Down

0 comments on commit 039fd07

Please sign in to comment.