diff --git a/ct/streamlink-webui.sh b/ct/streamlink-webui.sh index 634c5e6..4b3f514 100644 --- a/ct/streamlink-webui.sh +++ b/ct/streamlink-webui.sh @@ -38,12 +38,16 @@ function update_script() { msg_info "Updating $APP to v${RELEASE}" rm -rf /opt/${APP} + NODE_VERSION="22" + NODE_MODULE="npm@latest,yarn@latest" + install_node_and_modules + setup_uv fetch_and_deploy_gh_release "CrazyWolf13/streamlink-webui" - cd /opt/"${APPLICATION}"/backend/src + $STD uv venv /opt/**/backend/src/.venv + source /opt/**//backend/src/.venv/bin/activate + $STD uv sync --all-extras $STD pip install -r requirements.txt cd ../../frontend/src - $STD npm install - $STD npm install -g yarn $STD yarn build msg_ok "Updated $APP to v${RELEASE}" diff --git a/install/streamlink-webui-install.sh b/install/streamlink-webui-install.sh index ba7e5b7..104eb5c 100644 --- a/install/streamlink-webui-install.sh +++ b/install/streamlink-webui-install.sh @@ -14,20 +14,15 @@ setting_up_container network_check update_os -msg_info "Setup NodeJS" NODE_VERSION="22" NODE_MODULE="npm@latest,yarn@latest" install_node_and_modules -msg_ok "Setup NodeJS" - -msg_info "Setup Python" setup_uv -msg_ok "Setup Python" msg_info "Setup ${APPLICATION}" fetch_and_deploy_gh_release "CrazyWolf13/streamlink-webui" $STD uv venv /opt/**/backend/src/.venv -source /opt/**/.venv/bin/activate +source /opt/**//backend/src/.venv/bin/activate $STD uv sync --all-extras $STD pip install -r requirements.txt cd ../../frontend/src