Skip to content

Commit 3d68114

Browse files
committed
feat: 新增 sync 分支
0 parents  commit 3d68114

File tree

10,518 files changed

+424590
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

10,518 files changed

+424590
-0
lines changed

.editorconfig

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
# end_of_line = crlf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[.github/*]
12+
end_of_line = lf
13+
14+
[*.{yml,yaml,md,mjs,json}]
15+
indent_size = 2
16+
end_of_line = lf
17+
18+
[*.md]
19+
max_line_length = 0
20+
trim_trailing_whitespace = false

.gitattributes

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# * text eol=crlf
2+
# *.ps1 text eol=crlf
3+
*.json text eol=lf
4+
.github/* text eol=lf

.gitignore

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
.DS_Store
2+
node_modules
3+
4+
# build dist
5+
.nyc_output
6+
*.log
7+
/dist/
8+
/cjs/
9+
/esm/
10+
/release/
11+
/debug/
12+
/coverage/
13+
/docs/
14+
/tmp
15+
/cache
16+
17+
# manager
18+
npm-debug.log
19+
package-lock.json
20+
yarn.lock
21+
yarn-error.log
22+
pnpm-lock.yaml
23+
.pnpm-debug.log
24+
25+
# config
26+
# .flh.config.js
27+
.grs.config.js
28+
/package.json

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 任侠
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+235
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,235 @@
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 处理。

bin/php-postinstall.ps1

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
param($dir)
2+
3+
# Create directory for custom PHP configuration
4+
$confd = "$dir\conf.d"
5+
6+
if (!(Test-Path $confd)) {
7+
(New-Item -Type directory $confd) | Out-Null
8+
}
9+
10+
# (Get-Content "$dir\php.ini-development") | Where-Object { $_ -notmatch '^;' } | ? {$_.trim() -ne '' } | Set-Content "$persist_dir\development.ini"
11+
$prod_ini = "$dir\php.ini-production"
12+
if(!(Test-Path "$dir\php.ini-production")) {
13+
$prod_ini = "$dir\php.ini-dist"
14+
}
15+
16+
# Enable extensions to be found in installation-relative folder (the default is to search C:/php)
17+
if(Test-Path $prod_ini) {
18+
(Get-Content "$prod_ini") | ForEach-Object { $_ -replace '; extension_dir = "ext"', 'extension_dir = "ext"' } | Set-Content "$dir\php.ini"
19+
}
20+
21+
Copy-Item -ErrorAction Ignore "$dir\php.ini-development" $persist_dir

bucket/010editor.json

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"version": "15.0.1",
3+
"description": "Professional text and hex editor with Binary Templates technology.",
4+
"homepage": "https://www.sweetscape.com/010editor/",
5+
"license": {
6+
"identifier": "Proprietary",
7+
"url": "https://www.sweetscape.com/010editor/manual/License.htm"
8+
},
9+
"notes": "This is a free 30-day trial version. Please buy a copy of it for furthur evaluation.",
10+
"architecture": {
11+
"64bit": {
12+
"url": "https://download.sweetscape.com/010EditorWin64Portable15.0.1.zip",
13+
"hash": "1f356d56df171b0946c80ebca9bf2edf6902e4ca045e50598fa070ff952a2d3a",
14+
"extract_dir": "010EditorWin64Portable"
15+
},
16+
"32bit": {
17+
"url": "https://download.sweetscape.com/010EditorWin32Portable15.0.1.zip",
18+
"hash": "f5851d9ae9f67bc683f4359d824c06d5f49938f9767349ae15a864531661ec14",
19+
"extract_dir": "010EditorWin32Portable"
20+
}
21+
},
22+
"bin": [
23+
[
24+
"AppData\\010Editor.exe",
25+
"010editor"
26+
]
27+
],
28+
"shortcuts": [
29+
[
30+
"AppData\\010Editor.exe",
31+
"010 Editor"
32+
]
33+
],
34+
"persist": [
35+
"AppData\\Config",
36+
"AppData\\Data",
37+
"AppData\\Plugins",
38+
"010 Scripts",
39+
"010 Templates",
40+
"AppData\\Temp"
41+
],
42+
"checkver": {
43+
"url": "https://www.sweetscape.com/download/previous/",
44+
"regex": "Download 010 Editor v([\\d.]+)"
45+
},
46+
"autoupdate": {
47+
"architecture": {
48+
"64bit": {
49+
"url": "https://download.sweetscape.com/010EditorWin64Portable$version.zip"
50+
},
51+
"32bit": {
52+
"url": "https://download.sweetscape.com/010EditorWin32Portable$version.zip"
53+
}
54+
}
55+
}
56+
}

0 commit comments

Comments
 (0)