perf: 从压缩包上传插件时,去除branch尾缀

This commit is contained in:
Soulter
2025-02-09 14:59:27 +08:00
parent e8d99f0460
commit 23cc5b31ba
+1
View File
@@ -428,6 +428,7 @@ class PluginManager:
async def install_plugin_from_file(self, zip_file_path: str):
dir_name = os.path.basename(zip_file_path).replace(".zip", "")
dir_name = dir_name.removesuffix("-master").removesuffix("-main").lower()
desti_dir = os.path.join(self.plugin_store_path, dir_name)
self.updator.unzip_file(zip_file_path, desti_dir)