mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 10:47:02 -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
|
||||
Function MD5Checksums {
|
||||
echo "MD5 Checksums:"
|
||||
$currentMD5 = MD5("$(get-location)\Greenshot\bin\Release\Greenshot.exe")
|
||||
echo "Greenshot.exe : $currentMD5"
|
||||
$currentMD5 = MD5("$(get-location)\Greenshot\bin\Release\GreenshotPlugin.dll")
|
||||
echo "GreenshotPlugin.dll : $currentMD5"
|
||||
$sourcebase = "$(get-location)\Greenshot\bin\Release"
|
||||
|
||||
$INCLUDE=@("*.exe", "*.gsp", "*.dll")
|
||||
Get-ChildItem -Path "$sourcebase" -Recurse -Include $INCLUDE | foreach {
|
||||
$currentMD5 = MD5($_.fullname)
|
||||
$name = $_.Name
|
||||
echo "$name : $currentMD5"
|
||||
}
|
||||
}
|
||||
|
||||
# This function creates the paf.exe
|
||||
|
@ -318,6 +322,7 @@ FillTemplates
|
|||
echo "Signing executables"
|
||||
SignBinaryFilesBeforeBuildingInstaller
|
||||
|
||||
# This must be after the signing, otherwise they would be different.
|
||||
echo "Generating MD5"
|
||||
MD5Checksums | Set-Content "$(get-location)\Greenshot\bin\Release\checksum.MD5" -encoding UTF8
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue