From 089555dd9e1c1372d2437faffccd12713dea6afa Mon Sep 17 00:00:00 2001 From: MickLesk Date: Fri, 22 May 2026 08:09:41 +0200 Subject: [PATCH] Setup Node v22 and build SoulSync WebUI Install and use Node.js v22 during both install and update flows, and build the WebUI. Adds NODE_VERSION="22" setup_nodejs to install/soulsync-install.sh and ct/soulsync.sh, and runs npm ci and npm run build in /opt/soulsync/webui during install/update so the front-end assets are compiled. Existing Python venv and service restart logic remain unchanged. --- ct/soulsync.sh | 8 ++++++++ install/soulsync-install.sh | 7 +++++++ 2 files changed, 15 insertions(+) diff --git a/ct/soulsync.sh b/ct/soulsync.sh index 012c9dae0..bf61f5499 100644 --- a/ct/soulsync.sh +++ b/ct/soulsync.sh @@ -29,6 +29,8 @@ function update_script() { exit fi + NODE_VERSION="22" setup_nodejs + if check_for_gh_release "soulsync" "Nezreka/SoulSync"; then msg_info "Stopping Service" systemctl stop soulsync @@ -47,6 +49,12 @@ function update_script() { $STD uv pip install -r requirements.txt msg_ok "Updated Python Dependencies" + msg_info "Building WebUI" + cd /opt/soulsync/webui + $STD npm ci + $STD npm run build + msg_ok "Built WebUI" + mv /opt/soulsync-config.bak /opt/soulsync/config mv /opt/soulsync-data.bak /opt/soulsync/data diff --git a/install/soulsync-install.sh b/install/soulsync-install.sh index 00bfaf171..7eac38ae9 100644 --- a/install/soulsync-install.sh +++ b/install/soulsync-install.sh @@ -23,6 +23,7 @@ $STD apt install -y \ msg_ok "Installed Dependencies" UV_PYTHON="3.11" setup_uv +NODE_VERSION="22" setup_nodejs fetch_and_deploy_gh_release "soulsync" "Nezreka/SoulSync" "tarball" @@ -33,6 +34,12 @@ $STD uv pip install -r requirements.txt --python /opt/soulsync/.venv/bin/python mkdir -p /opt/soulsync/{config,data,logs} msg_ok "Set up Application" +msg_info "Building WebUI" +cd /opt/soulsync/webui +$STD npm ci +$STD npm run build +msg_ok "Built WebUI" + msg_info "Creating Service" cat </etc/systemd/system/soulsync.service [Unit]