Skip to content

Commit

Permalink
Add support for signing setup tool
Browse files Browse the repository at this point in the history
  • Loading branch information
crosire committed Oct 13, 2020
1 parent ff8d7d9 commit add9ec5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions setup/ReShade Setup.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,13 @@
<ItemGroup>
<Content Include="Properties\Icon.ico" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.WindowsSDK.props" />
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Common.props" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>echo Generating assembly version ...
"$(VC_ExecutablePath_x86)\cl.exe" /nologo /EP /C /I "$(SolutionDir)res" "$(ProjectDir)Properties\AssemblyInfo.cs.in" &gt; "$(ProjectDir)Properties\AssemblyInfo.cs"
set PATH=%PATH%;$(VC_ExecutablePath_x86)
cl.exe /nologo /EP /C /I "$(SolutionDir)res" "$(ProjectDir)Properties\AssemblyInfo.cs.in" &gt; "$(ProjectDir)Properties\AssemblyInfo.cs"

echo Compiling ReShade setup tool ...</PreBuildEvent>
<PostBuildEvent>echo Compressing ReShade DLLs ...
Expand All @@ -133,7 +135,11 @@ echo Appending archive to setup executable ...
copy /b "$(TargetPath)" + "$(TargetDir)ReShade Setup.zip" "$(TargetPath)"

echo Cleaning up and deleting temporary archive ...
del "$(TargetDir)ReShade Setup.zip"</PostBuildEvent>
del "$(TargetDir)ReShade Setup.zip"

echo Signing executable ...
set PATH=%PATH%;$(WindowsSDK_ExecutablePath)
if exist "$(SolutionDir)res\sign.pfx" signtool.exe sign /f "$(SolutionDir)res\sign.pfx" /t http://timestamp.verisign.com/scripts/timstamp.dll "$(TargetPath)"</PostBuildEvent>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
</PropertyGroup>
</Project>

0 comments on commit add9ec5

Please sign in to comment.