feat 拆分插件仓库
This commit is contained in:
4
update
4
update
@ -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 "前端程序下载失败,继续使用旧的程序来启动..."
|
||||
|
Reference in New Issue
Block a user