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>
This commit is contained in:
parent
84c066fa79
commit
10caab8813
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user