现在基本上都在使用 Clash Verge Rev 最新版了吧?nodeseek 看到的教程,转过来备份一下。以下均用 cfw 代指 Clash For Windows 旧版。
clash meta windows下载:https://clashmeta.net「备用clash节点」
开始操作前先彻底关闭 cfw 和 Clash 内核 的进程!!!
「修改Clash For Windows使用mihomo Meta内核:https://clashfor.win/clash-for-windows-use-meta-core」下载内核
到 mihomo 仓库(Clash Meta)下载最新内核程序。
项目地址:https://github.com/MetaCubeX/mihomo/releases/latest
建议使用带 compatible 字样文件,比如:mihomo-windows-amd64-compatible-go120-v1.19.5.zip
「修改Clash For Windows使用mihomo Meta内核:https://clashfor.win/clash-for-windows-use-meta-core」替换内核
打开 cfw 安装目录 \resources\static\files\win\x64 文件夹,将原有的 clash-win64.exe 文件改名备份,然后上面解压出来的内核程序改名为 clash-win64.exe 并替换进去。
如果使用 v1.16.0 及以下版本内核,或者下载的内核带 compatible 字样,这篇文章到此结束。
如果想吃苦,可以继续往下看。
「修改Clash For Windows使用mihomo Meta内核:https://clashfor.win/clash-for-windows-use-meta-core」若想尝试非 compatible 版本内核,建议使用 mklink 创建链接。
打开 cmd 或者 PowerShell,执行以下命令,执行完成后会提示 创建的符号链接。
cmd /c mklink /d "%USERPROFILE%\.config\mihomo" "%USERPROFILE%\.config\clash"
测试是否替换成功
打开 cfw,在「Clash 内核」位置显示 Unknown 并且可以正常使用节点即可。
「修改Clash For Windows使用mihomo Meta内核:https://clashfor.win/clash-for-windows-use-meta-core」原贴主使用的是远古 v0.19.17 版本,实测可以,其他版本没有尝试请自行研究。
参考资料
Leginn's Blog-修改 CFW 的内核为最新的 mihomo 内核
Comments:0