From 52b5905a8528ddc7c668f0b3af447d935fb9a69a Mon Sep 17 00:00:00 2001 From: kiddin9 <48883331+kiddin9@users.noreply.github.com> Date: Tue, 29 Sep 2026 21:04:26 +0800 Subject: [PATCH] Update upstream.yml --- .github/workflows/upstream.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/upstream.yml b/.github/workflows/upstream.yml index 5a0f76458..9c54dbdd9 100644 --- a/.github/workflows/upstream.yml +++ b/.github/workflows/upstream.yml @@ -574,19 +574,14 @@ jobs: 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 + mv luci-app-homeproxy-pro/po/templates/homeproxy.pot luci-app-homeproxy-pro/po/templates/homeproxy-pro.pot 2>/dev/null || true + find luci-app-homeproxy-pro/po/ -name "homeproxy.po" -execdir mv homeproxy.po homeproxy-pro.po \; 2>/dev/null || true + find ./luci-app-homeproxy-pro -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 -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 - + sed -i 's/"title": "HomeProxy"/"title": "HomeProxy Pro"/g' luci-app-homeproxy-pro/root/usr/share/luci/menu.d/luci-app-homeproxy.json while [[ ! -f /tmp/ok || ! -f /tmp/ok2 || ! -f /tmp/ok3 ]]; do echo "wait" sleep 1