Skip to content

Commit

Permalink
chore: 更新 ghproxy 域名
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 12, 2024
1 parent ba5a1f7 commit 5e842d3
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
6 changes: 3 additions & 3 deletions .github/sync/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ export const CONFIG = {
/** 是否忽略 manifest JSON 解析失败的应用 */
ignoreParseFailed: true,
tmpDir: path.resolve(rootDir, 'tmp'),
// ghproxy: 'https://gh.api.99988866.xyz',
ghproxy: 'https://mirror.ghproxy.com',
ghproxy: 'https://ghp.ci',
// ghproxy: 'https://mirror.ghproxy.com',
// ghproxy: 'https://www.ghproxy.cc',
// ghproxy: 'https://ghps.cc',
// ghproxy: 'https://ghproxy.net',
// ghproxy: 'https://gh.ddlc.top',
// --- https://github-mirror.us.kg --- 大量个人部署的服务列表
/** 已失效的历史地址;用于兼容其他仓库的,避免套娃问题 */
ghproxyInvalid: ['https://gh-proxy.com', 'https://ghproxy.com'],
ghproxyInvalid: ['https://gh-proxy.com', 'https://ghproxy.com', 'https://mirror.ghproxy.com'],
/** 同步仓库列表,按仓库质量排序 */
repo: new Set([
// `duzyn/scoop-cn`, // 仅同步官方仓库,并修改为国内镜像地址
Expand Down
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"powershell.codeFormatting.ignoreOneLineBlock": true,
"json.schemas": [
{
"url": "https://mirror.ghproxy.com/https://raw.githubusercontent.com/scoopinstaller/scoop/master/schema.json",
"url": "https://ghp.ci/https://raw.githubusercontent.com/scoopinstaller/scoop/master/schema.json",
"fileMatch": [
"bucket/*.json"
]
Expand Down Expand Up @@ -54,7 +54,7 @@
"yaml.validate": true,
"yaml.schemas": {
"http://json.schemastore.org/appveyor": "appveyor.yml",
"https://mirror.ghproxy.com/https://raw.githubusercontent.com/lukesampson/scoop/master/schema.json": [
"https://ghp.ci/https://raw.githubusercontent.com/lukesampson/scoop/master/schema.json": [
"bucket/*.yml",
],
},
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# 🍡 scoop-proxy-cn

适合中国大陆用户使用的 [Scoop](https://scoop.sh) buckets 代理镜像库。从多个开源 `bucket` 仓库同步更新,并将从 `github release` 下载的应用地址修改为基于 `mirror.ghproxy.com` 的代理下载地址。
适合中国大陆用户使用的 [Scoop](https://scoop.sh) buckets 代理镜像库。从多个开源 `bucket` 仓库同步更新,并将从 `github release` 下载的应用地址修改为基于 `ghp.ci` 的代理下载地址。

## Usage

```powershell
scoop bucket add spc https://mirror.ghproxy.com/github.com/lzwme/scoop-proxy-cn
scoop bucket add spc https://ghp.ci/github.com/lzwme/scoop-proxy-cn
# install apps
scoop install spc/<app_name>
Expand All @@ -19,15 +19,15 @@ scoop install spc/<app_name>
# install
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# irm -useb get.scoop.sh | iex
irm https://mirror.ghproxy.com/raw.githubusercontent.com/lzwme/scoop-proxy-cn/master/install.ps1 | iex
irm https://ghp.ci/raw.githubusercontent.com/lzwme/scoop-proxy-cn/master/install.ps1 | iex
# config
scoop config SCOOP_REPO https://mirror.ghproxy.com/github.com/ScoopInstaller/Scoop
scoop bucket add spc https://mirror.ghproxy.com/github.com/lzwme/scoop-proxy-cn
scoop config SCOOP_REPO https://ghp.ci/github.com/ScoopInstaller/Scoop
scoop bucket add spc https://ghp.ci/github.com/lzwme/scoop-proxy-cn
# 从 0.4.0 开始,必须存在 main bucket,否则执行 scoop update 会报错:ERROR 'main' bucket not found. Failed to remove local 'main' bucket.
scoop bucket rm main
scoop bucket add main https://mirror.ghproxy.com/github.com/ScoopInstaller/Main
scoop bucket add main https://ghp.ci/github.com/ScoopInstaller/Main
# show help
scoop help
Expand Down Expand Up @@ -60,11 +60,11 @@ scoop install scoop-search -s

```bash
# 更新 scoop repo
scoop config scoop_repo https://mirror.ghproxy.com/github.com/ScoopInstaller/Scoop.git
scoop config scoop_repo https://ghp.ci/github.com/ScoopInstaller/Scoop.git

# 移除并重新添加 spc bucket
scoop bucket rm spc
scoop bucket add spc https://mirror.ghproxy.com/github.com/lzwme/scoop-proxy-cn
scoop bucket add spc https://ghp.ci/github.com/lzwme/scoop-proxy-cn
```

## Sync Buckets From
Expand Down
4 changes: 2 additions & 2 deletions install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,8 @@ $SCOOP_CONFIG_HOME = $env:XDG_CONFIG_HOME, "$env:USERPROFILE\.config" | Select-O
$SCOOP_CONFIG_FILE = "$SCOOP_CONFIG_HOME\scoop\config.json"

# TODO: Use a specific version of Scoop and the main bucket
$SCOOP_PACKAGE_REPO = 'https://mirror.ghproxy.com/https://github.com/ScoopInstaller/Scoop/archive/master.zip'
$SCOOP_MAIN_BUCKET_REPO = 'https://mirror.ghproxy.com/https://github.com/ScoopInstaller/Main/archive/master.zip'
$SCOOP_PACKAGE_REPO = 'https://ghp.ci/https://github.com/ScoopInstaller/Scoop/archive/master.zip'
$SCOOP_MAIN_BUCKET_REPO = 'https://ghp.ci/https://github.com/ScoopInstaller/Main/archive/master.zip'

$SCOOP_PACKAGE_GIT_REPO = 'https://github.com/ScoopInstaller/Scoop.git'
$SCOOP_MAIN_BUCKET_GIT_REPO = 'https://github.com/ScoopInstaller/Main.git'
Expand Down
2 changes: 1 addition & 1 deletion scripts/Scoop-Core/install.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
iwr -useb 'https://mirror.ghproxy.com/https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1' | iex
iwr -useb 'https://ghp.ci/https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1' | iex
scoop install gsudo git scoop-search
scoop config SCOOP_REPO 'https://github.com/Ash258/Scoop-Core'
scoop bucket add 'Base'
Expand Down
2 changes: 1 addition & 1 deletion scripts/Scoop/install.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-WebRequest -useb 'https://mirror.ghproxy.com/https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1' | Invoke-Expression
Invoke-WebRequest -useb 'https://ghp.ci/https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1' | Invoke-Expression
scoop install gsudo git scoop-search
# scoop config SCOOP_REPO 'https://github.com/Ash258/Scoop-Core'
# scoop bucket add 'Base'
Expand Down

0 comments on commit 5e842d3

Please sign in to comment.