Private plugin updating – GitHub zip file changes the plugin directory (with release or branch name)
It should be possible to carefully adjust the destination path via the upgrader_package_options filter in WordPress, before the upgrader installs the new version of it. Here’s a barebone example that appends the plugin’s current directory name to the destination path, if it’s same as WP_PLUGIN_DIR (see check in core here), when the package url is … Read more