Skip to content

生成 Homebrew 所需 Clash 分流规则,以确保相关源和依赖可正常连接。(Generate Clash routing rules required for local Homebrew upgrades to ensure proper connectivity to repositories and dependencies.)

License

Notifications You must be signed in to change notification settings

Accademia/Generate_ClashRuleset_For_Homebrew

Repository files navigation

功能与目的:

本项目核心功能:

  • homebrew 所需的 clash 分流规则
    • 已防止因为GFW,而影响(brew upgrade \ brew install)升级安装过程
longshot20250923095550

.

使用方法:

下面两个脚本功能完全相同。推荐使用第一个脚本,并行处理,比第二个脚本(串行处理)快几十倍。

  • 并行执行:(推荐)

    ./usercmd_brewlist_to_ruleset_parallel 
    
  • 串行执行:

    ./usercmd_brewlist_to_ruleset_serial
    
  • 生成的规则 在 当前目录 :

    ./MacAppUpgrade_Domain.yaml
    ./MacAppUpgrade_No_Resolve.yaml
    ./MacAppUpgrade.yaml
    

.

声明:

  • 本工程所有源代码,均使用MIT协议分发

  • 本脚本,代码均来自AI,没有任何人工编写的源代码。参与编程的AI包括: 编程者:OpenAI ChatGPT5 Pro Agent

About

生成 Homebrew 所需 Clash 分流规则,以确保相关源和依赖可正常连接。(Generate Clash routing rules required for local Homebrew upgrades to ensure proper connectivity to repositories and dependencies.)

Topics

Resources

License

Stars

Watchers

Forks

Languages