修改 OpenClash 添加方式为开关添加
This commit is contained in:
		
							parent
							
								
									e7081a3665
								
							
						
					
					
						commit
						bf92d8a8e3
					
				|  | @ -9,13 +9,15 @@ Diy_Core() { | ||||||
| 
 | 
 | ||||||
| 	INCLUDE_AutoUpdate=true | 	INCLUDE_AutoUpdate=true | ||||||
| 	INCLUDE_AutoBuild_Tools=true | 	INCLUDE_AutoBuild_Tools=true | ||||||
|  | 	INCLUDE_Keep_Latest_Xray=true | ||||||
|  | 	INCLUDE_mt7621_OC1000MHz=true | ||||||
|  | 	INCLUDE_Enable_FirewallPort_53=true | ||||||
|  | 
 | ||||||
| 	INCLUDE_SSR_Plus=true | 	INCLUDE_SSR_Plus=true | ||||||
| 	INCLUDE_Passwall=false | 	INCLUDE_Passwall=false | ||||||
| 	INCLUDE_HelloWorld=false | 	INCLUDE_HelloWorld=false | ||||||
| 	INCLUDE_Bypass=false | 	INCLUDE_Bypass=false | ||||||
| 	INCLUDE_Keep_Latest_Xray=true | 	INCLUDE_OpenClash=true | ||||||
| 	INCLUDE_mt7621_OC1000MHz=true |  | ||||||
| 	INCLUDE_Enable_FirewallPort_53=true |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| Diy-Part1() { | Diy-Part1() { | ||||||
|  | @ -42,7 +44,6 @@ Diy-Part1() { | ||||||
| 	ExtraPackages git other luci-app-argon-config https://github.com/jerrykuku master | 	ExtraPackages git other luci-app-argon-config https://github.com/jerrykuku master | ||||||
| 	ExtraPackages git other luci-app-adguardhome https://github.com/Hyy2001X master | 	ExtraPackages git other luci-app-adguardhome https://github.com/Hyy2001X master | ||||||
| 	ExtraPackages svn other luci-app-smartdns https://github.com/project-openwrt/openwrt/trunk/package/ntlf9t | 	ExtraPackages svn other luci-app-smartdns https://github.com/project-openwrt/openwrt/trunk/package/ntlf9t | ||||||
| 	ExtraPackages svn other luci-app-openclash https://github.com/vernesong/OpenClash/trunk |  | ||||||
| 	ExtraPackages git other luci-app-serverchan https://github.com/tty228 master | 	ExtraPackages git other luci-app-serverchan https://github.com/tty228 master | ||||||
| 	ExtraPackages svn other luci-app-socat https://github.com/Lienol/openwrt-package/trunk | 	ExtraPackages svn other luci-app-socat https://github.com/Lienol/openwrt-package/trunk | ||||||
| 	ExtraPackages svn other luci-app-usb3disable https://github.com/project-openwrt/openwrt/trunk/package/ctcgfw | 	ExtraPackages svn other luci-app-usb3disable https://github.com/project-openwrt/openwrt/trunk/package/ctcgfw | ||||||
|  |  | ||||||
|  | @ -31,6 +31,9 @@ Diy_Part1_Base() { | ||||||
| 		find package/*/ feeds/*/ -maxdepth 2 -path "*luci-app-bypass/Makefile" | xargs -i sed -i 's/shadowsocksr-libev-ssr-redir/shadowsocksr-libev-alt/g' {} | 		find package/*/ feeds/*/ -maxdepth 2 -path "*luci-app-bypass/Makefile" | xargs -i sed -i 's/shadowsocksr-libev-ssr-redir/shadowsocksr-libev-alt/g' {} | ||||||
| 		find package/*/ feeds/*/ -maxdepth 2 -path "*luci-app-bypass/Makefile" | xargs -i sed -i 's/shadowsocksr-libev-ssr-server/shadowsocksr-libev-server/g' {} | 		find package/*/ feeds/*/ -maxdepth 2 -path "*luci-app-bypass/Makefile" | xargs -i sed -i 's/shadowsocksr-libev-ssr-server/shadowsocksr-libev-server/g' {} | ||||||
| 	fi | 	fi | ||||||
|  | 	if [[ "${INCLUDE_OpenClash}" == "true" ]];then | ||||||
|  | 		ExtraPackages svn other luci-app-openclash https://github.com/vernesong/OpenClash/trunk | ||||||
|  | 	fi | ||||||
| 	if [[ "${INCLUDE_Keep_Latest_Xray}" == "true" ]];then | 	if [[ "${INCLUDE_Keep_Latest_Xray}" == "true" ]];then | ||||||
| 		Update_Makefile xray-core package/lean/helloworld/xray-core | 		Update_Makefile xray-core package/lean/helloworld/xray-core | ||||||
| 		# Update_Makefile v2ray package/lean/v2ray | 		# Update_Makefile v2ray package/lean/v2ray | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue