Skip to content

Commit 039fd07

Browse files
committed
sign installation script. (#127)
1 parent ed59a4f commit 039fd07

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

scripts/onebranch/post-build.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ $OneBranchConfig = $env:ONEBRANCH_CONFIG
1616
if ($OneBranchConfig -eq "Debug" -and $OneBranchArch -eq "x64")
1717
{
1818
xcopy /y build\bin\x64_Debug .\x64\Debug
19+
xcopy /y build\bin\x64_Debug\Install-Extension.ps1 .\scripts\
1920
Get-ChildItem -Path .\build\bin\x64_Debug -Recurse | Remove-Item -Force -Recurse
2021
}
2122
elseif ($OneBranchConfig -eq "Release" -and $OneBranchArch -eq "x64")
2223
{
2324
xcopy /y build\bin\x64_Release .\x64\Release
25+
xcopy /y build\bin\x64_Release\Install-Extension.ps1 .\scripts\
2426
Get-ChildItem -Path .\build\bin\x64_Release -Recurse | Remove-Item -Force -Recurse
2527
}
2628
else

tools/onebranch/onebranch.vcxproj

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,10 @@
114114
<GenerateDebugInformation>true</GenerateDebugInformation>
115115
</Link>
116116
<PostBuildEvent>
117-
<Command>xcopy /yie $(OutDir) $(SolutionDir)build\bin\x64_Debug</Command>
117+
<Command>
118+
xcopy /yie $(OutDir) $(SolutionDir)build\bin\x64_Debug
119+
xcopy /yie $(SolutionDir)scripts\Install-Extension.ps1 $(SolutionDir)build\bin\x64_Debug\
120+
</Command>
118121
</PostBuildEvent>
119122
</ItemDefinitionGroup>
120123
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64' And '$(BuildOneBranch)'=='True'">
@@ -133,7 +136,10 @@
133136
<GenerateDebugInformation>true</GenerateDebugInformation>
134137
</Link>
135138
<PostBuildEvent>
136-
<Command>xcopy /yie $(OutDir) $(SolutionDir)build\bin\x64_Release</Command>
139+
<Command>
140+
xcopy /yie $(OutDir) $(SolutionDir)build\bin\x64_Release
141+
xcopy /yie $(SolutionDir)scripts\Install-Extension.ps1 $(SolutionDir)build\bin\x64_Release\
142+
</Command>
137143
</PostBuildEvent>
138144
</ItemDefinitionGroup>
139145
<ItemGroup>

0 commit comments

Comments
 (0)