mirror of
https://github.com/daimyomizukagebay61/SteamPanel.git
synced 2026-07-25 03:34:30 +00:00
updater
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user