From 059008a90396bfac54ba4984ef4571fcc31cb7f1 Mon Sep 17 00:00:00 2001 From: Raven95676 Date: Tue, 17 Feb 2026 09:33:45 +0800 Subject: [PATCH] fix: prevent updates for AstrBot launched via launcher --- astrbot/core/updator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astrbot/core/updator.py b/astrbot/core/updator.py index e7c2aa54b..049a19789 100644 --- a/astrbot/core/updator.py +++ b/astrbot/core/updator.py @@ -148,8 +148,8 @@ class AstrBotUpdator(RepoZipUpdator): update_data = await self.fetch_release_info(self.ASTRBOT_RELEASE_API, latest) file_url = None - if os.environ.get("ASTRBOT_CLI"): - raise Exception("不支持更新CLI启动的AstrBot") # 避免版本管理混乱 + if os.environ.get("ASTRBOT_CLI") or os.environ.get("ASTRBOT_LAUNCHER"): + raise Exception("不支持更新此方式启动的AstrBot") # 避免版本管理混乱 if latest: latest_version = update_data[0]["tag_name"]