Skip to content

Commit

Permalink
插件调整
Browse files Browse the repository at this point in the history
  • Loading branch information
VIKINGYFY committed Jan 11, 2025
1 parent 9ba02dd commit 4d71783
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
7 changes: 5 additions & 2 deletions Scripts/Handles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ if [ -d *"homeproxy"* ]; then
cd $PKG_PATH && echo "homeproxy date has been updated!"
fi

#修复argon主题进度条颜色不同步
#修改argon主题字体和颜色
if [ -d *"luci-theme-argon"* ]; then
sed -i 's/(--bar-bg)/(--primary)/g' $(find ./luci-theme-argon -type f -iname "cascade.*")
cd ./luci-theme-argon/

sed -i '/font-weight:/ {/normal\|!important/! s/\(font-weight:\s*\)[^;]*;/\1normal;/}' $(find ./luci-theme-argon -type f -iname "*.css")
sed -i "s/#5e72e4/#31a1a1/; s/#483d8b/#31a1a1/; s/'0.2'/'0.5'/; s/'none'/'bing'/" ./luci-app-argon-config/root/etc/config/argon

cd $PKG_PATH && echo "theme-argon has been fixed!"
fi
Expand Down
14 changes: 6 additions & 8 deletions Scripts/Packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,35 +8,33 @@ UPDATE_PACKAGE() {
local PKG_SPECIAL=$4
local REPO_NAME=$(echo $PKG_REPO | cut -d '/' -f 2)

rm -rf $(find ./ ../feeds/luci/ ../feeds/packages/ -maxdepth 3 -type d -iname "*$PKG_NAME*" -prune)
find ./ ../feeds/luci/ ../feeds/packages/ -maxdepth 3 -type d -name "*$PKG_NAME*" -exec rm -rf {} +

git clone --depth=1 --single-branch --branch $PKG_BRANCH "https://github.com/$PKG_REPO.git"

if [[ $PKG_SPECIAL == "pkg" ]]; then
cp -rf $(find ./$REPO_NAME/*/ -maxdepth 3 -type d -iname "*$PKG_NAME*" -prune) ./
find ./$REPO_NAME/ -maxdepth 3 -type d -name "*$PKG_NAME*" -exec cp -rf {} ./ \;
rm -rf ./$REPO_NAME/
elif [[ $PKG_SPECIAL == "name" ]]; then
mv -f $REPO_NAME $PKG_NAME
fi
}

#UPDATE_PACKAGE "包名" "项目地址" "项目分支" "pkg/name,可选,pkg为从大杂烩中单独提取包名插件;name为重命名为包名"
UPDATE_PACKAGE "argon" "jerrykuku/luci-theme-argon" "master"
UPDATE_PACKAGE "kucat" "sirpdboy/luci-theme-kucat" "js"
UPDATE_PACKAGE "argon" "sbwml/luci-theme-argon" "openwrt-24.10"

UPDATE_PACKAGE "openclash" "vernesong/OpenClash" "dev" "pkg"
UPDATE_PACKAGE "passwall" "xiaorouji/openwrt-passwall" "main" "pkg"
UPDATE_PACKAGE "ssr-plus" "fw876/helloworld" "master"

UPDATE_PACKAGE "alist" "sbwml/luci-app-alist" "main"
UPDATE_PACKAGE "mosdns" "sbwml/luci-app-mosdns" "v5"
UPDATE_PACKAGE "vnt" "lazyoop/networking-artifact" "main" "pkg"
UPDATE_PACKAGE "easytier" "lazyoop/networking-artifact" "main" "pkg"
UPDATE_PACKAGE "wol" "VIKINGYFY/packages" "main" "pkg"

UPDATE_PACKAGE "luci-app-advancedplus" "VIKINGYFY/packages" "main" "pkg"
UPDATE_PACKAGE "luci-app-gecoosac" "lwb1978/openwrt-gecoosac" "main"
UPDATE_PACKAGE "luci-app-tailscale" "asvow/luci-app-tailscale" "main"
UPDATE_PACKAGE "luci-app-wolplus" "VIKINGYFY/packages" "main" "pkg"

UPDATE_PACKAGE "lazyoop" "lazyoop/networking-artifact" "main"

if [[ $WRT_BRANCH == *"23.05"* ]]; then
UPDATE_PACKAGE "homeproxy" "VIKINGYFY/homeproxy" "main"
Expand Down

0 comments on commit 4d71783

Please sign in to comment.