aboutsummaryrefslogtreecommitdiffstats
path: root/wintun.proj
diff options
context:
space:
mode:
authorSimon Rozman <simon@rozman.si>2020-10-23 22:12:18 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2020-10-30 16:51:01 +0100
commit10caab8813c7b53595ac03c802e57b8794c15a95 (patch)
tree86d164c329ab8ed863f8e3cfb90025cf424a67aa /wintun.proj
parentapi: revise logging (diff)
downloadwintun-10caab8813c7b53595ac03c802e57b8794c15a95.tar.xz
wintun-10caab8813c7b53595ac03c802e57b8794c15a95.zip
api: upgrade Zip building to output SHA256
This allows following the Zip file integrity from immediately after it is built. Signed-off-by: Simon Rozman <simon@rozman.si>
Diffstat (limited to 'wintun.proj')
-rw-r--r--wintun.proj4
1 files changed, 4 insertions, 0 deletions
diff --git a/wintun.proj b/wintun.proj
index de38711..92f8efb 100644
--- a/wintun.proj
+++ b/wintun.proj
@@ -112,5 +112,9 @@
<Copy SourceFiles="@(ZipFilesSrc)" DestinationFiles="@(ZipFilesDst)" />
<ZipDirectory DestinationFile="$(ZipTargetPath)" Overwrite="true" SourceDirectory="$(ZipIntDir)" />
<RemoveDir Directories="$(ZipIntDir)" />
+ <GetFileHash Files="$(ZipTargetPath)" Algorithm="SHA256" HashEncoding="hex">
+ <Output TaskParameter="Items" ItemName="InstallerLibraryHash" />
+ </GetFileHash>
+ <Message Text="SHA256(&quot;$(ZipTargetPath)&quot;) = @(InstallerLibraryHash->Metadata('FileHash')->ToLower())"/>
</Target>
</Project>