mirror of https://github.com/joomla/joomla-cms.git
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:
parent
7c8a6015f0
commit
acda9912af
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue