From 23cc5b31ba252819174f623c7b29b878d206a10e Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sun, 9 Feb 2025 14:59:27 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BB=8E=E5=8E=8B=E7=BC=A9=E5=8C=85?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=8F=92=E4=BB=B6=E6=97=B6=EF=BC=8C=E5=8E=BB?= =?UTF-8?q?=E9=99=A4branch=E5=B0=BE=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- astrbot/core/star/star_manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/astrbot/core/star/star_manager.py b/astrbot/core/star/star_manager.py index bfc52688..a1029246 100644 --- a/astrbot/core/star/star_manager.py +++ b/astrbot/core/star/star_manager.py @@ -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)