mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-31 07:15:13 +08:00
Update upstream.yml
This commit is contained in:
1 parent
2783c6e4dc
commit
ed1f010111
1 file changed
+4
-9
@@ -574,19 +574,14 @@ jobs:
|
|||||||
luci-theme-argon/htdocs/luci-static/argon/css/dark.css
|
luci-theme-argon/htdocs/luci-static/argon/css/dark.css
|
||||||
OLD="luci-app-homeproxy"
|
OLD="luci-app-homeproxy"
|
||||||
NEW="luci-app-homeproxy-pro"
|
NEW="luci-app-homeproxy-pro"
|
||||||
cd luci-app-homeproxy
|
mv luci-app-homeproxy-pro/po/templates/homeproxy.pot luci-app-homeproxy-pro/po/templates/homeproxy-pro.pot 2>/dev/null || true
|
||||||
mv po/templates/homeproxy.pot 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 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
|
||||||
find . -depth -name "*${OLD}*" | while IFS= read -r item; do
|
|
||||||
dir=$(dirname "$item")
|
dir=$(dirname "$item")
|
||||||
base=$(basename "$item")
|
base=$(basename "$item")
|
||||||
mv "$item" "$dir/${base//${OLD}/${NEW}}"
|
mv "$item" "$dir/${base//${OLD}/${NEW}}"
|
||||||
done
|
done
|
||||||
find . -type f -exec sed -i \
|
sed -i 's/"title": "HomeProxy"/"title": "HomeProxy Pro"/g' luci-app-homeproxy-pro/root/usr/share/luci/menu.d/luci-app-homeproxy.json
|
||||||
-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
|
while [[ ! -f /tmp/ok || ! -f /tmp/ok2 || ! -f /tmp/ok3 ]]; do
|
||||||
echo "wait"
|
echo "wait"
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|||||||
Reference in new issue
Block a user