feat: support Clash Verge global script on Windows

This commit is contained in:
2026-08-30 14:31:06 +08:00
parent de26a0edc0
commit f05bffd587
3 changed files with 87 additions and 8 deletions
+4 -2
View File
@@ -27,15 +27,17 @@ vpn-rules/
## 消费端接入
### Clash Verge(macOS)
### Clash Verge(Windows / macOS)
```bash
# 生成并写入 Clash Verge 数据目录的 Script.js
# 按当前平台生成并写入 Clash Verge 数据目录的全局 Script.js
python3 scripts/gen_clash_verge_script.py
# 然后在 Clash Verge 界面点「重启内核」生效
```
对当前及以后新增/切换的所有订阅生效;订阅更新不会覆盖它。
Windows 默认写入 `%APPDATA%\io.github.clash-verge-rev.clash-verge-rev\profiles\Script.js`;
macOS 默认写入 `~/Library/Application Support/io.github.clash-verge-rev.clash-verge-rev/profiles/Script.js`。
### 路由器 mihomo(Magic Catling2 / OpenWrt)