This commit is contained in:
Manchik
2026-05-15 17:55:03 +03:00
parent 22d29bfd41
commit e8f217db70
7 changed files with 2 additions and 76 deletions
+2 -10
View File
@@ -65,11 +65,7 @@ def rebuild_frontend():
frontend = ROOT / "frontend"
if not frontend.exists():
return
try:
node_ok = subprocess.run(["npm", "--version"], capture_output=True).returncode == 0
except FileNotFoundError:
node_ok = False
if not node_ok:
if subprocess.run(["npm", "--version"], capture_output=True).returncode != 0:
print("[!] Node.js not found — skipping frontend rebuild.")
print(" If UI looks broken: cd frontend && npm install && npm run build")
return
@@ -101,11 +97,7 @@ def download(url, dest):
# ── git update path ───────────────────────────────────────────────────────────
def update_via_git():
try:
git_ok = subprocess.run(["git", "--version"], capture_output=True).returncode == 0
except FileNotFoundError:
git_ok = False
if not git_ok:
if subprocess.run(["git", "--version"], capture_output=True).returncode != 0:
print("[!] git not found. Install Git from https://git-scm.com")
return