This commit is contained in:
DDSRem 2024-02-20 14:35:19 +08:00
parent 5bac94cbc5
commit 13bb31fd93

4
update
View File

@ -18,8 +18,8 @@ download_and_unzip() {
install_backend_and_download_resources() {
if download_and_unzip "https://github.com/jxxghp/MoviePilot/archive/refs/${1}" "App"; then
echo "后端程序下载成功"
pip install "${PIP_OPTIONS}" --upgrade pip
if pip install "${PIP_OPTIONS}" -r /tmp/App/requirements.txt; then
pip install ${PIP_OPTIONS} --upgrade pip
if pip install ${PIP_OPTIONS} -r /tmp/App/requirements.txt; then
echo "安装依赖成功"
frontend_version=$(curl ${CURL_OPTIONS} "https://api.github.com/repos/jxxghp/MoviePilot-Frontend/releases/latest" ${CURL_HEADERS} | jq -r .tag_name)
if [[ "${frontend_version}" == *v* ]]; then