mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 13:10:00 -07:00
Added MD5 for all files that go into the end-product.
This commit is contained in:
parent
3cf3540edd
commit
aea11451cf
1 changed files with 9 additions and 4 deletions
13
build.ps1
13
build.ps1
|
@ -96,10 +96,14 @@ Function FillTemplates {
|
||||||
# Create the MD5 checksum file
|
# Create the MD5 checksum file
|
||||||
Function MD5Checksums {
|
Function MD5Checksums {
|
||||||
echo "MD5 Checksums:"
|
echo "MD5 Checksums:"
|
||||||
$currentMD5 = MD5("$(get-location)\Greenshot\bin\Release\Greenshot.exe")
|
$sourcebase = "$(get-location)\Greenshot\bin\Release"
|
||||||
echo "Greenshot.exe : $currentMD5"
|
|
||||||
$currentMD5 = MD5("$(get-location)\Greenshot\bin\Release\GreenshotPlugin.dll")
|
$INCLUDE=@("*.exe", "*.gsp", "*.dll")
|
||||||
echo "GreenshotPlugin.dll : $currentMD5"
|
Get-ChildItem -Path "$sourcebase" -Recurse -Include $INCLUDE | foreach {
|
||||||
|
$currentMD5 = MD5($_.fullname)
|
||||||
|
$name = $_.Name
|
||||||
|
echo "$name : $currentMD5"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function creates the paf.exe
|
# This function creates the paf.exe
|
||||||
|
@ -318,6 +322,7 @@ FillTemplates
|
||||||
echo "Signing executables"
|
echo "Signing executables"
|
||||||
SignBinaryFilesBeforeBuildingInstaller
|
SignBinaryFilesBeforeBuildingInstaller
|
||||||
|
|
||||||
|
# This must be after the signing, otherwise they would be different.
|
||||||
echo "Generating MD5"
|
echo "Generating MD5"
|
||||||
MD5Checksums | Set-Content "$(get-location)\Greenshot\bin\Release\checksum.MD5" -encoding UTF8
|
MD5Checksums | Set-Content "$(get-location)\Greenshot\bin\Release\checksum.MD5" -encoding UTF8
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue