Repository navigation
v2.0.1 Bug Fix: Updater Directory Name
Bug Fix: Updater Directory Name
In this release, we've fixed a bug in the Updater class that was causing the downloaded directory to retain its original name when moved to the plugin directory.
Previously, when the Updater class downloaded a new version of the plugin, it would move the downloaded directory to the plugin directory but wouldn't change the directory's name. This could cause issues with plugin identification and activation.
The install_update method in the Updater class has been updated to correctly rename the downloaded directory to match the plugin name. Here's a brief overview of the changes:
- Added a step to get the correct directory name from the plugin directory path.
- Added a step to construct the correct path for the downloaded directory.
- Updated the step that moves the downloaded directory to also rename it to the correct directory name.
This bug fix ensures that the updated plugin is correctly named and located in the plugin directory, improving the reliability of the update process.