From 5e54c835ede66d53e2b2d2939ddcbac15f14d37c Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Tue, 29 Sep 2026 20:54:39 +0800 Subject: [PATCH] Update upstream.yml --- .github/workflows/upstream.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upstream.yml b/.github/workflows/upstream.yml index 6b3a555a1..b544df53a 100644 --- a/.github/workflows/upstream.yml +++ b/.github/workflows/upstream.yml @@ -223,7 +223,7 @@ jobs: git_clone https://github.com/4IceG/luci-app-atcommands atcommands && mvdir atcommands git_clone https://github.com/wukongdaily/luci-app-run run1 && mvdir run1 git_clone https://github.com/szwjp/luci-app-homeproxy - # git_clone https://github.com/szwjp/luci-app-homeproxy-pro + git_clone https://github.com/szwjp/luci-app-homeproxy-pro git_clone https://github.com/weicaixian86/luci-app-pingpacket ) & ( @@ -572,7 +572,21 @@ jobs: sed -i -e "s/data-page=admin-dashboard/data-page=admin-status-dashboard/g" \ -e '$a\.modal>pre,.modal>textarea{color: #ccc};' \ luci-theme-argon/htdocs/luci-static/argon/css/dark.css - + OLD="luci-app-homeproxy" + NEW="luci-app-homeproxy-pro" + cd luci-app-homeproxy + mv po/templates/homeproxy.pot po/templates/homeproxy-pro.pot 2>/dev/null || true + find po/ -name "homeproxy.po" -execdir mv homeproxy.po homeproxy-pro.po \; 2>/dev/null || true + find . -depth -name "*${OLD}*" | while IFS= read -r item; do + dir=$(dirname "$item") + base=$(basename "$item") + mv "$item" "$dir/${base//${OLD}/${NEW}}" + done + find . -type f ! -path '*/.git*' -exec sed -i \ + -e "s/\b${OLD}\b/${NEW}/g" \ + -e "s/${NEW}${NEW#${OLD}}/${NEW}/g" \ + -e 's/"title": "HomeProxy"/"title": "HomeProxy Pro"/g' {} + + cd - while [[ ! -f /tmp/ok || ! -f /tmp/ok2 || ! -f /tmp/ok3 ]]; do echo "wait" sleep 1