Fix version numbers (not) being changed in places

JSON files in the `examples` directory should not change, but the .pot file should,
This commit is contained in:
Yahnis Elsts 2023-05-20 14:28:21 +03:00
parent 10404db947
commit 53535fd83a
1 changed files with 3 additions and 1 deletions

View File

@ -86,7 +86,7 @@ exec("git checkout -b \"version-bump-$newVersion\"");
rename($currentVersionDir, "Puc/$newVersionInfix");
//Define the list of directories to search
$directoriesToSearch = ['css', 'examples', 'js', 'Puc'];
$directoriesToSearch = ['css', 'js', 'Puc'];
//Replace old version infix and old version number in the source code
foreach ($directoriesToSearch as $dir) {
@ -100,6 +100,8 @@ foreach ($directoriesToSearch as $dir) {
//Replace the old version infix in the readme file.
updateVersionNumbers($repositoryRoot . '/README.md', $oldVersion, $newVersion);
//And also in the main .pot file.
updateVersionNumbers($repositoryRoot . '/languages/plugin-update-checker.pot', $oldVersion, $newVersion);
//Rename the loader file and update the version numbers.
$oldLoaderFileName = "load-$oldVersionInfix.php";