Skip to content

Commit a0409f5

Browse files
committed
delete file hashes before building
1 parent 7d3b671 commit a0409f5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PdfScribeInstall/PdfScribeInstall.wixproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,7 @@
4343
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
4444
<Exec Command="powershell -command &quot;(Get-FileHash -Algorithm SHA512 '$(TargetPath)').Hash + ' *' + (Split-Path '$(TargetPath)' -leaf) | Out-File -filePath '$(TargetPath).sha512' -encoding Default&quot;&#xD;&#xA;powershell -command &quot;((Get-Content '$(TargetPath).sha512') -join \&quot;`n\&quot;) + \&quot;`n\&quot; | Set-Content -NoNewline '$(TargetPath).sha512'&quot;&#xD;&#xA;if $(ConfigurationName) == Release (&#xD;&#xA; cd /d $(SolutionDir)&#xD;&#xA; if NOT EXIST &quot;publish\&quot; mkdir &quot;publish&quot;&#xD;&#xA; if NOT EXIST &quot;publish\unsigned&quot; mkdir &quot;publish\unsigned&quot;&#xD;&#xA; del /q &quot;publish\unsigned\*&quot;&#xD;&#xA; copy /y &quot;$(TargetPath)&quot; &quot;publish\unsigned&quot; &#xD;&#xA; copy /y &quot;$(TargetPath).sha512&quot; &quot;publish\unsigned&quot; &#xD;&#xA;)" />
4545
</Target>
46+
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
47+
<Exec Command="cd $(TargetDir)&#xD;&#xA;del DEL /Q /F /S &quot;*.sha512&quot;" />
48+
</Target>
4649
</Project>

0 commit comments

Comments
 (0)