please Check links:
https://github.com/YahnisElsts/plugin-update-checker
This is a custom update checker library for WordPress plugins and themes. It lets you add automatic update notifications and one-click upgrades to your WP Plugin.
and another ref.
https://rudrastyh.com/wordpress/self-hosted-plugin-update.html