29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-20 11:05:08 +00:00

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

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) { foreach ($checksums as $packageName => $packageHashes) {
$checksumsContent .= "Filename: $packageName\n"; $checksumsContent .= "Filename: $packageName\n";
foreach ($packageHashes as $hashType => $hash) { foreach ($packageHashes as $hashType => $hash) {
$checksumsContent .= "$hashType: $hash\n"; $checksumsContent .= "$hashType: $hash\n";
if (strpos($packageName, 'Update_Package.zip') !== false) {
$checksumsContentUpdate .= "<$hashType>$hash</$hashType>\n";
}
} }
$checksumsContent .= "\n"; $checksumsContent .= "\n";
} }
file_put_contents('checksums.txt', $checksumsContent); file_put_contents('checksums.txt', $checksumsContent);
file_put_contents('checksums_update.txt', $checksumsContentUpdate);
echo "Generating github_release.txt file\n"; echo "Generating github_release.txt file\n";