Skip to content

Commit 059008a

Browse files
committed
fix: prevent updates for AstrBot launched via launcher
1 parent 97c9e95 commit 059008a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

astrbot/core/updator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ async def update(self, reboot=False, latest=True, version=None, proxy="") -> Non
148148
update_data = await self.fetch_release_info(self.ASTRBOT_RELEASE_API, latest)
149149
file_url = None
150150

151-
if os.environ.get("ASTRBOT_CLI"):
152-
raise Exception("不支持更新CLI启动的AstrBot") # 避免版本管理混乱
151+
if os.environ.get("ASTRBOT_CLI") or os.environ.get("ASTRBOT_LAUNCHER"):
152+
raise Exception("不支持更新此方式启动的AstrBot") # 避免版本管理混乱
153153

154154
if latest:
155155
latest_version = update_data[0]["tag_name"]

0 commit comments

Comments
 (0)