feat 拆分插件仓库

This commit is contained in:
jxxghp
2023-11-01 16:50:53 +08:00
parent c7a869b750
commit 22b76f9919
69 changed files with 13 additions and 24178 deletions

4
update
View File

@ -20,6 +20,9 @@ if [ "${MOVIEPILOT_AUTO_UPDATE_DEV}" = "true" ]; then
pip install ${PIP_OPTIONS} -r /tmp/app/requirements.txt
if [ $? -eq 0 ]; then
echo "安装依赖成功"
# 下载插件
echo "正在下载插件..."
curl ${CURL_OPTIONS} "https://github.com/jxxghp/MoviePilot-Plugins/archive/refs/heads/main.zip" | busybox unzip -d /tmp -
# 检查前端最新版本
frontend_version=$(curl ${CURL_OPTIONS} "https://api.github.com/repos/jxxghp/MoviePilot-Frontend/releases/latest" | jq -r .tag_name)
if [[ "${frontend_version}" == *v* ]]; then
@ -31,6 +34,7 @@ if [ "${MOVIEPILOT_AUTO_UPDATE_DEV}" = "true" ]; then
mv /tmp/app /app
rm -rf /public
mv /tmp/dist /public
mv /tmp/MoviePilot-Plugins-main/plugins/* /app/app/plugins/
echo "程序更新成功,前端版本:${frontend_version}"
else
echo "前端程序下载失败,继续使用旧的程序来启动..."