diff options
author | Simon Rozman <simon@rozman.si> | 2020-10-23 22:12:18 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-10-30 16:51:01 +0100 |
commit | 10caab8813c7b53595ac03c802e57b8794c15a95 (patch) | |
tree | 86d164c329ab8ed863f8e3cfb90025cf424a67aa /wintun.proj | |
parent | api: revise logging (diff) | |
download | wintun-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.proj | 4 |
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("$(ZipTargetPath)") = @(InstallerLibraryHash->Metadata('FileHash')->ToLower())"/> </Target> </Project> |