Skip to content

Commit

Permalink
Build:Create checksum_update.txt file with tags
Browse files Browse the repository at this point in the history
  • Loading branch information
MacJoom committed Jan 9, 2024
1 parent 5622163 commit a8e8fd6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build/build.php
Original file line number Diff line number Diff line change
Expand Up @@ -679,21 +679,26 @@ function clean_composer(string $dir)
}
}

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";

Expand Down

0 comments on commit a8e8fd6

Please sign in to comment.