From f2ff556e2c0eca78eddc15c8bc7bdf051968a2bd Mon Sep 17 00:00:00 2001 From: Tobias Meier Date: Mon, 5 May 2025 11:24:02 +0200 Subject: [PATCH] update node function --- ct/streamlink-webui.sh | 2 +- install/streamlink-webui-install.sh | 21 +++++++++------------ 2 files changed, 10 insertions(+), 13 deletions(-) diff --git a/ct/streamlink-webui.sh b/ct/streamlink-webui.sh index 37613c4..634c5e6 100644 --- a/ct/streamlink-webui.sh +++ b/ct/streamlink-webui.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func) # Copyright (c) 2021-2025 community-scripts ORG # Author: CrazyWolf13 # License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE diff --git a/install/streamlink-webui-install.sh b/install/streamlink-webui-install.sh index e597cc3..ba7e5b7 100644 --- a/install/streamlink-webui-install.sh +++ b/install/streamlink-webui-install.sh @@ -14,26 +14,23 @@ setting_up_container network_check update_os -msg_info "Setup Python3" -$STD apt-get install -y \ - python3 \ - python3-pip -rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED -msg_ok "Setup Python3" - msg_info "Setup NodeJS" -export NODE_MODULE="npm@latest" +NODE_VERSION="22" +NODE_MODULE="npm@latest,yarn@latest" install_node_and_modules msg_ok "Setup NodeJS" -# Setup App +msg_info "Setup Python" +setup_uv +msg_ok "Setup Python" + msg_info "Setup ${APPLICATION}" fetch_and_deploy_gh_release "CrazyWolf13/streamlink-webui" -cd /opt/"${APPLICATION}"/backend/src +$STD uv venv /opt/**/backend/src/.venv +source /opt/**/.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 "Setup ${APPLICATION}"