From 0ed138e8c36bd3c56e78625f33dfaf32d5e2657d Mon Sep 17 00:00:00 2001 From: Wrench56 Date: Tue, 16 Jul 2024 00:34:02 -0400 Subject: [PATCH] Rebuild `frontend` on plugin download --- src/backend/plugins/downloader.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/backend/plugins/downloader.py b/src/backend/plugins/downloader.py index ddcf6bc..bf58311 100644 --- a/src/backend/plugins/downloader.py +++ b/src/backend/plugins/downloader.py @@ -1,6 +1,7 @@ from typing import Optional from plugins import dependencies, handler, priority, unpack, validate +from server import build from utils.const import PLUGINS_DOWNLOAD import logging @@ -42,6 +43,8 @@ def from_url(url: str) -> bool: if not dependencies.node(name): unpack.revert(name) return False + + build.build_frontend() except Exception as e: unpack.revert(name) raise e