Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions .github/workflows/frontend-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ jobs:
- name: Build distributable
run: yarn build

- name: Verify committed distributable
- name: Verify distributable
run: |
if [ -n "$(git status --porcelain -- dist)" ]; then
git status --short -- dist
test -s dist/assets/remoteEntry.js
if [ -n "$(git status --porcelain --untracked-files=all -- dist)" ]; then
git status --short --untracked-files=all -- dist
exit 1
fi
38 changes: 37 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v7
with:
node-version: '24'

- name: Install dependencies
run: |
sudo apt-get update
Expand All @@ -39,6 +44,36 @@ jobs:
# Track processed tags to avoid duplicates across package files.
: > processed_tags.txt

build_frontend() {
local plugin_dir="$1"
local frontend_dir="$plugin_dir/frontend"
[ -f "$frontend_dir/package.json" ] || return 0

if [ ! -f "$frontend_dir/yarn.lock" ]; then
echo "Frontend lockfile missing: $frontend_dir/yarn.lock" >&2
exit 1
fi

echo "Building frontend in $frontend_dir"
(cd "$frontend_dir" && yarn --frozen-lockfile && yarn build)

if [ ! -s "$frontend_dir/dist/assets/remoteEntry.js" ]; then
echo "Frontend federation entry missing: $frontend_dir/dist/assets/remoteEntry.js" >&2
exit 1
fi

if git check-ignore -q "$frontend_dir/dist/assets/remoteEntry.js"; then
echo "Frontend distributable is ignored by Git: $frontend_dir/dist" >&2
exit 1
fi

if [ -n "$(git status --porcelain --untracked-files=all -- "$frontend_dir/dist")" ]; then
git status --short --untracked-files=all -- "$frontend_dir/dist"
echo "Frontend distributable does not match committed files: $frontend_dir/dist" >&2
exit 1
fi
}

process_package() {
local pkg_file="$1"
[ -f "$pkg_file" ] || return 0
Expand Down Expand Up @@ -115,8 +150,9 @@ jobs:
fi

echo "Packing $plugin_id from $plugin_dir -> $asset"
build_frontend "$plugin_dir"
rm -f "$asset"
(cd "$(dirname "$plugin_dir")" && zip -r "$GITHUB_WORKSPACE/$asset" "$(basename "$plugin_dir")" -x "*/__pycache__/*" -x "*.pyc") >/dev/null
(cd "$(dirname "$plugin_dir")" && zip -r "$GITHUB_WORKSPACE/$asset" "$(basename "$plugin_dir")" -x "*/__pycache__/*" -x "*.pyc" -x "*/node_modules/*") >/dev/null

# Re-running a version replaces the release asset for that plugin.
if gh release view "$tag" >/dev/null 2>&1; then
Expand Down
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ __pycache__/
build/
develop-eggs/
dist/
!plugins.v[23]/*/frontend/dist/
plugins.v[23]/*/frontend/dist/*
!plugins.v[23]/*/frontend/dist/assets/
!plugins.v[23]/*/frontend/dist/assets/**
downloads/
eggs/
.eggs/
Expand Down Expand Up @@ -168,8 +172,3 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
.idea/
.vscode/

!plugins.v2/subscribeassistantenhanced/frontend/dist/
plugins.v2/subscribeassistantenhanced/frontend/dist/*
!plugins.v2/subscribeassistantenhanced/frontend/dist/assets/
!plugins.v2/subscribeassistantenhanced/frontend/dist/assets/**
4 changes: 2 additions & 2 deletions package.v3.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"name": "订阅助手(增强版)",
"description": "多场景管理订阅,实现订阅全生命周期管理。",
"labels": "订阅",
"version": "0.7.1",
"version": "0.7.2",
"icon": "https://raw.githubusercontent.com/InfinityPacer/MoviePilot-Plugins/main/icons/subscribeassistantenhanced.png",
"author": "InfinityPacer",
"level": 1,
"system_version": ">=3.0.0",
"history": {
"v0.7.1": "适配 MoviePilot V3 统一响应封装,避免打开配置页时提示未知错误"
"v0.7.2": "修正 V3 发布包缺少前端构建产物的问题,确保配置组件可正常加载"
},
"release": true
},
Expand Down
1 change: 1 addition & 0 deletions plugins.v3/subscribeassistantenhanced/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

## 版本更新日志

- v0.7.2:修正 V3 发布包缺少前端构建产物的问题,确保配置组件可正常加载。
- v0.7.1:适配 MoviePilot V3 统一响应封装,避免打开配置页时提示未知错误。
- v0.7:MoviePilot V3 版本订阅助手(增强版)插件
- v0.6.12:配置页滚动条跟随主程序样式,并恢复移动端修改项计数。
Expand Down
2 changes: 1 addition & 1 deletion plugins.v3/subscribeassistantenhanced/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class SubscribeAssistantEnhanced(_PluginBase):
# 插件图标
plugin_icon = "https://raw.githubusercontent.com/InfinityPacer/MoviePilot-Plugins/main/icons/subscribeassistantenhanced.png"
# 插件版本
plugin_version = "0.7.1"
plugin_version = "0.7.2"
_site_cache_candidate_helper_warned = False
# 插件作者
plugin_author = "InfinityPacer"
Expand Down
Loading
Loading