|
| 1 | +# 🍡 scoop-proxy-cn |
| 2 | + |
| 3 | +适合中国大陆用户使用的 [Scoop](https://scoop.sh) buckets 代理镜像库。从多个开源 `bucket` 仓库同步更新。其中: |
| 4 | + |
| 5 | +- `sync`分支(默认): 同步多个仓库应用,但不作 ghproxy 代理修改处理。**适用于使用 gitee 国内修改版 scoop 的场景** |
| 6 | +- `main`分支:将从 `github release` 下载的应用地址修改为基于 `https://ghfast.top` 的代理下载地址。**由于代理地址经常会因失效而变动,并不稳定** |
| 7 | + |
| 8 | +## Usage |
| 9 | + |
| 10 | +添加 `spc`应用仓库。适用与 [scoop 国内镜像优化库](https://gitee.com/scoop-installer/scoop) 搭配适用: |
| 11 | + |
| 12 | +```bash |
| 13 | +# 添加 bucket,默认拉取 sync 分支 |
| 14 | +scoop bucket add spc https://gitee.com/wlzwme/scoop-proxy-cn.git |
| 15 | + |
| 16 | +# install apps |
| 17 | +scoop install spc/<app_name> |
| 18 | +``` |
| 19 | + |
| 20 | +如果只希望使用 Scoop 官方版,可作如下操作,将订阅分支修改为 `main` 分支: |
| 21 | + |
| 22 | +```bash |
| 23 | +# 进入到 spc 目录下 |
| 24 | +cd "$env:USERPROFILE\scoop\buckets\spc" |
| 25 | +# 如果设置了环境变量 SCOOP,则应执行如下命令 |
| 26 | +cd "$env:SCOOP\buckets\spc" |
| 27 | + |
| 28 | +# 切换到 main 分支 |
| 29 | +git fetch --all |
| 30 | +git checkout -b main origin/main |
| 31 | +``` |
| 32 | + |
| 33 | +## Scoop 安装与配置参考 |
| 34 | + |
| 35 | +### 方式一:基于国内定制镜像安装(推荐) |
| 36 | + |
| 37 | +由于 scoop 的源码和 buckets 应用基本都是以 git 形式维护在 github,github 的访问难题使得其安装、更新和应用下载都会变得体验极差。 |
| 38 | + |
| 39 | +下面介绍为 [scoop 国内镜像优化库](https://gitee.com/scoop-installer/scoop)的安装方法。 |
| 40 | + |
| 41 | +```bash |
| 42 | +# 脚本执行策略更改,默认自动同意 |
| 43 | +Set-ExecutionPolicy RemoteSigned -scope CurrentUser -Force |
| 44 | + |
| 45 | +# 方法一:执行安装命令(默认安装在用户目录下,如需更改请执行下面的“自定义安装目录”命令) |
| 46 | +iwr -useb scoop.201704.xyz | iex |
| 47 | + |
| 48 | + |
| 49 | +## 方法二:自定义安装目录(注意将目录修改为合适位置) |
| 50 | +irm scoop.201704.xyz -outfile 'install.ps1' |
| 51 | +.\install.ps1 -ScoopDir 'D:\Scoop' -ScoopGlobalDir 'D:\GlobalScoopApps' |
| 52 | + |
| 53 | +# 若已安装官方源,可执行如下命令进行切换 |
| 54 | +scoop config SCOOP_REPO "https://gitee.com/scoop-installer/scoop" |
| 55 | + |
| 56 | +# 添加 spc bucket |
| 57 | +scoop bucket add spc https://gitee.com/wlzwme/scoop-proxy-cn.git |
| 58 | + |
| 59 | +# 拉取新库地址 |
| 60 | +scoop update |
| 61 | +``` |
| 62 | + |
| 63 | +该方式安装的 scoop 经过定制修改,支持自定义代理加速站,并默认使用 `scoop.201704.xyz` 代理下载应用。 |
| 64 | + |
| 65 | +```bash |
| 66 | +# 添加代理 |
| 67 | +scoop config URL_PROXY "https://scoop.201704.xyz" |
| 68 | + |
| 69 | +# 删除代理 |
| 70 | +scoop config rm URL_PROXY |
| 71 | +``` |
| 72 | + |
| 73 | +### 方式二:基于官方仓库以代理形式安装 |
| 74 | + |
| 75 | +打开 `PowerShell` 并执行如下命令进行安装: |
| 76 | + |
| 77 | +```bash |
| 78 | +# install |
| 79 | +Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser |
| 80 | +# irm -useb get.scoop.sh | iex |
| 81 | +irm https://ghfast.top/raw.githubusercontent.com/lzwme/scoop-proxy-cn/master/install.ps1 | iex |
| 82 | + |
| 83 | +# config |
| 84 | +scoop config SCOOP_REPO https://ghfast.top/github.com/ScoopInstaller/Scoop |
| 85 | + |
| 86 | +# add spc bucket |
| 87 | +scoop bucket add spc https://gitee.com/wlzwme/scoop-proxy-cn.git |
| 88 | +# 进入到 spc 目录下 |
| 89 | +cd "$env:USERPROFILE\scoop\buckets\spc" |
| 90 | +# 切换到 main 分支 |
| 91 | +git fetch --all && git checkout -b main origin/main |
| 92 | + |
| 93 | +# show help |
| 94 | +scoop help |
| 95 | + |
| 96 | +# install 7zip、aria2、scoop-search... |
| 97 | +scoop install spc/7zip spc/aria2 spc/scoop-search |
| 98 | +``` |
| 99 | + |
| 100 | +### 关于 `scoop-search` |
| 101 | + |
| 102 | +由于 `scoop-proxy-cn` 仓库同步了 `1.4w+` 应用,官方的基于 `PowerShell` 编写的 `scoop search` 命令效率差到无法使用,推荐安装并使用基于 `go` 语言开发的 `scoop-search` 工具替代。示例: |
| 103 | + |
| 104 | +```bash |
| 105 | +scoop install scoop-search |
| 106 | +# 使用 scoop-search |
| 107 | +scoop-search act |
| 108 | +``` |
| 109 | + |
| 110 | +## 常见问题 |
| 111 | + |
| 112 | +### 关于 `aria2` 导致的下载失败的问题 |
| 113 | + |
| 114 | +当安装了 `aria2` 时,scoop 会采用 `aria2` 实现分片加速下载。但部分代理地址不支持或屏蔽了来自 `aria2` 的分片下载请求,此时可以执行如下命令禁用 `aria2`: |
| 115 | + |
| 116 | +```bash |
| 117 | +scoop config aria2-enabled false |
| 118 | +``` |
| 119 | + |
| 120 | +### 关于 `Hash Check Failed` 的问题 |
| 121 | + |
| 122 | +由于部分 app 配置的下载地址为最新发布地址,但同时又配置了 hash 值,当其有新版本变更时则会出现 `Hash Check Failed` 的问题。此时可以添加参数 `-s` 以忽略。示例: |
| 123 | + |
| 124 | +```bash |
| 125 | +scoop install scoop-search -s |
| 126 | +``` |
| 127 | + |
| 128 | +### 关于代理站失效需更新的处理方法 |
| 129 | + |
| 130 | +在使用 Scooop 官方版并且订阅为 `main` 分支的情况下,会使用代理站加速 git 仓库及应用下载地址。但旧的代理加速站失效则会导致站点无法继续更新。请执行如下命令以重新添加: |
| 131 | + |
| 132 | +```bash |
| 133 | +# 先更新 scoop repo |
| 134 | +scoop config scoop_repo https://ghfast.top/github.com/ScoopInstaller/Scoop.git |
| 135 | + |
| 136 | +# 方法一:更新 spc bucket repo |
| 137 | +git -C "$env:USERPROFILE\scoop\buckets\spc" remote set-url origin https://gitee.com/wlzwme/scoop-proxy-cn.git |
| 138 | +# 如果修改了 buckets 的默认位置,则执行如下命令 |
| 139 | +git -C "$env:SCOOP\buckets\spc" remote set-url origin https://gitee.com/wlzwme/scoop-proxy-cn.git |
| 140 | + |
| 141 | +# 方法二:移除并重新添加 spc bucket |
| 142 | +scoop bucket rm spc |
| 143 | +scoop bucket add spc https://gitee.com/wlzwme/scoop-proxy-cn.git |
| 144 | +``` |
| 145 | + |
| 146 | +## Sync Buckets From |
| 147 | + |
| 148 | +- [ScoopInstaller/PHP](https://github.com/ScoopInstaller/PHP) |
| 149 | +- [ScoopInstaller/Main](https://github.com/ScoopInstaller/Main) |
| 150 | +- [ScoopInstaller/Extras](https://github.com/ScoopInstaller/Extras) |
| 151 | +- [ScoopInstaller/Java](https://github.com/ScoopInstaller/Java) |
| 152 | +- [ScoopInstaller/Versions](https://github.com/ScoopInstaller/Versions) |
| 153 | +- [ScoopInstaller/Nirsoft](https://github.com/ScoopInstaller/Nirsoft) |
| 154 | +- [ScoopInstaller/Nonportable](https://github.com/ScoopInstaller/Nonportable) |
| 155 | +- [renxia/scoop-bucket](https://github.com/renxia/scoop-bucket) |
| 156 | +- [scoopcn/scoopcn](https://github.com/scoopcn/scoopcn) |
| 157 | +- [rasa/scoops](https://github.com/rasa/scoops) |
| 158 | +- [amorphobia/siku](https://github.com/amorphobia/siku) |
| 159 | +- [ACooper81/scoop-apps](https://github.com/ACooper81/scoop-apps) |
| 160 | +- [kkzzhizhou/scoop-zapps](https://github.com/kkzzhizhou/scoop-zapps) |
| 161 | +- [Calinou/scoop-games](https://github.com/Calinou/scoop-games) |
| 162 | +- [cderv/r-bucket](https://github.com/cderv/r-bucket) |
| 163 | +- [chawyehsu/dorado](https://github.com/chawyehsu/dorado) |
| 164 | +- [borger/scoop-galaxy-integrations](https://github.com/borger/scoop-galaxy-integrations) |
| 165 | +- [ivaquero/scoopet](https://github.com/ivaquero/scoopet) |
| 166 | +- [KNOXDEV/wsl](https://github.com/KNOXDEV/wsl) |
| 167 | +- [kodybrown/scoop-nirsoft](https://github.com/kodybrown/scoop-nirsoft) |
| 168 | +- [kidonng/sushi](https://github.com/kidonng/sushi) |
| 169 | +- [littleli/scoop-clojure](https://github.com/littleli/scoop-clojure) |
| 170 | +- [niheaven/scoop-sysinternals](https://github.com/niheaven/scoop-sysinternals) |
| 171 | +- [matthewjberger/scoop-nerd-fonts](https://github.com/matthewjberger/scoop-nerd-fonts) |
| 172 | +- [TheCjw/scoop-retools](https://github.com/TheCjw/scoop-retools) |
| 173 | +- [TheRandomLabs/Scoop-Bucket](https://github.com/TheRandomLabs/Scoop-Bucket) |
| 174 | +- [TheRandomLabs/scoop-nonportable](https://github.com/TheRandomLabs/scoop-nonportable) |
| 175 | +- [TheRandomLabs/Scoop-Spotify](https://github.com/TheRandomLabs/Scoop-Spotify) |
| 176 | +- [Paxxs/Cluttered-bucket](https://github.com/Paxxs/Cluttered-bucket) |
| 177 | +- [zhoujin7/tomato](https://github.com/zhoujin7/tomato) |
| 178 | +- [HCLonely/my-scoop-bucket](https://github.com/HCLonely/my-scoop-bucket) |
| 179 | +- [Weidows-projects/scoop-3rd](https://github.com/Weidows-projects/scoop-3rd) |
| 180 | +- [hermanjustnu/scoop-emulators](https://github.com/hermanjustnu/scoop-emulators) |
| 181 | +- [everyx/scoop-bucket](https://github.com/everyx/scoop-bucket) |
| 182 | +- [borger/scoop-emulators](https://github.com/borger/scoop-emulators) |
| 183 | +- [ZvonimirSun/scoop-iszy](https://github.com/ZvonimirSun/scoop-iszy) |
| 184 | +- [kiennq/scoop-misc](https://github.com/kiennq/scoop-misc) |
| 185 | +- [wzv5/ScoopBucket](https://github.com/wzv5/ScoopBucket) |
| 186 | +- [TheRandomLabs/Scoop-Python](https://github.com/TheRandomLabs/Scoop-Python) |
| 187 | +- [naderi/scoop-bucket](https://github.com/naderi/scoop-bucket) |
| 188 | +- [ViCrack/scoop-bucket](https://github.com/ViCrack/scoop-bucket) |
| 189 | +- [42wim/scoop-bucket](https://github.com/42wim/scoop-bucket) |
| 190 | +- [akirco/aki-apps](https://github.com/akirco/aki-apps) |
| 191 | +- [batkiz/backit](https://github.com/batkiz/backit) |
| 192 | +- [iquiw/scoop-bucket](https://github.com/iquiw/scoop-bucket) |
| 193 | +- [ygguorun/scoop-bucket](https://github.com/ygguorun/scoop-bucket) |
| 194 | +- [seumsc/scoop-seu](https://github.com/seumsc/scoop-seu) |
| 195 | +- [cc713/ownscoop](https://github.com/cc713/ownscoop) |
| 196 | +- [aoisummer/scoop-bucket](https://github.com/aoisummer/scoop-bucket) |
| 197 | +- [yuusakuri/scoop-bucket](https://github.com/yuusakuri/scoop-bucket) |
| 198 | +- [hu3rror/scoop-muggle](https://github.com/hu3rror/scoop-muggle) |
| 199 | +- [starise/Scoop-Confetti](https://github.com/starise/Scoop-Confetti) |
| 200 | +- [dodorz/scoop](https://github.com/dodorz/scoop) |
| 201 | +- [SayCV/scoop-cvp](https://github.com/SayCV/scoop-cvp) |
| 202 | +- [Qv2ray/mochi](https://github.com/Qv2ray/mochi) |
| 203 | +- [Homeland-Community/scoop](https://github.com/Homeland-Community/scoop) |
| 204 | +- [jingyu9575/scoop-jingyu9575](https://github.com/jingyu9575/scoop-jingyu9575) |
| 205 | +- [couleur-tweak-tips/utils](https://github.com/couleur-tweak-tips/utils) |
| 206 | +- [wangzq/scoop-bucket](https://github.com/wangzq/scoop-bucket) |
| 207 | +- [jonz94/scoop-sarasa-nerd-fonts](https://github.com/jonz94/scoop-sarasa-nerd-fonts) |
| 208 | +- [NyaMisty/scoop_bucket_misty](https://github.com/NyaMisty/scoop_bucket_misty) |
| 209 | +- [jfut/scoop-jfut](https://github.com/jfut/scoop-jfut) |
| 210 | +- [mogeko/scoop-sysinternals](https://github.com/mogeko/scoop-sysinternals) |
| 211 | +- [ChungZH/peach](https://github.com/ChungZH/peach) |
| 212 | +- [DoveBoy/Apps](https://github.com/DoveBoy/Apps) |
| 213 | +- [Velgus/Scoop-Portapps](https://github.com/Velgus/Scoop-Portapps) |
| 214 | +- [starise/Scoop-Gaming](https://github.com/starise/Scoop-Gaming) |
| 215 | +- [mo-san/scoop-bucket](https://github.com/mo-san/scoop-bucket) |
| 216 | +- [brian6932/dank-scoop](https://github.com/brian6932/dank-scoop) |
| 217 | +- [AkariiinMKII/Scoop4kariiin](https://github.com/AkariiinMKII/Scoop4kariiin) |
| 218 | +- [littleli/Scoop-littleli](https://github.com/littleli/Scoop-littleli) |
| 219 | +- [ChinLong/scoop-customize](https://github.com/ChinLong/scoop-customize) |
| 220 | +- [Darkatse/Scoop-KanColle](https://github.com/Darkatse/Scoop-KanColle) |
| 221 | +- [aliesbelik/poldi](https://github.com/aliesbelik/poldi) |
| 222 | +- [MCOfficer/scoop-bucket](https://github.com/MCOfficer/scoop-bucket) |
| 223 | +- [KnotUntied/scoop-fonts](https://github.com/KnotUntied/scoop-fonts) |
| 224 | +- [beerpiss/scoop-bucket](https://github.com/beerpiss/scoop-bucket) |
| 225 | +- [HUMORCE/nuke](https://github.com/HUMORCE/nuke) |
| 226 | +- [AkinoKaede/maple](https://github.com/AkinoKaede/maple) |
| 227 | +- [hulucc/bucket](https://github.com/hulucc/bucket) |
| 228 | +- [Deide/deide-bucket](https://github.com/Deide/deide-bucket) |
| 229 | +- [echoiron/echo-scoop](https://github.com/echoiron/echo-scoop) |
| 230 | +- [tetradice/scoop-iyokan-jp](https://github.com/tetradice/scoop-iyokan-jp) |
| 231 | + |
| 232 | +## 声明 |
| 233 | + |
| 234 | +> [!WARNING] |
| 235 | +> 本仓库包含的应用信息仅从第三方仓库同步,未逐一作可用性、安全性验证,请在安装选择时自行验证识别。若有侵权请提 issues 处理。 |
0 commit comments