Build: Create checksum_update.txt file with tags (#42629)

* Build:Create checksum_update.txt file with tags

* Update build/build.php

cs

Co-authored-by: Quy <quy@nomonkeybiz.com>
This commit is contained in:
Martin Carl Kopp 2024-01-19 14:28:22 +01:00 committed by GitHub
parent 7c8a6015f0
commit acda9912af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 2 deletions

View File

@ -679,21 +679,26 @@ if ($includeExtraTextfiles) {
}
}
echo "Generating checksums.txt file\n";
echo "Generating checksums files\n";
$checksumsContent = '';
$checksumsContent = '';
$checksumsContentUpdate = '';
foreach ($checksums as $packageName => $packageHashes) {
$checksumsContent .= "Filename: $packageName\n";
foreach ($packageHashes as $hashType => $hash) {
$checksumsContent .= "$hashType: $hash\n";
if (strpos($packageName, 'Update_Package.zip') !== false) {
$checksumsContentUpdate .= "<$hashType>$hash</$hashType>\n";
}
}
$checksumsContent .= "\n";
}
file_put_contents('checksums.txt', $checksumsContent);
file_put_contents('checksums_update.txt', $checksumsContentUpdate);
echo "Generating github_release.txt file\n";