Scoop 修改优化特供版。通过第三方方式解决痛点问题,让您轻松使用 Scoop。
-
添加 hook,自动判断并替换下载链接为国内源,无需替换 Bucket,让您不再使用“垃圾桶”;基于 ISP 检测,加速策略更为精准
-
支持自定义 GitHub Proxy 加速镜像地址,只需执行
scoop config GH_PROXY ghproxy.cc
设置即可 -
如果出现下载出错、校验错误的情况,可以执行
scoop config URL_REPLACE false
关闭此功能 -
如有镜像站软件未替换,欢迎提 issue
-
-
执行
scoop search
时优先调用 scoop-search 执行搜索,速度更快- 优先级:
scoop-search
>PowerShell Core
>Windows PowerShell
- 优先级:
-
执行
scoop update
时不使用git pull
同步 Bucket,无需手动解决 commit 冲突 -
执行(暂时停用)scoop update
时优先调用 hok 使用 Rust Git2 多线程同步 Bucket- 优先级:
PowerShell Core + Git
多线程 >Windows PowerShell + Git
单线程
- 优先级:
-
支持自动创建桌面快捷方式
-
启用:
scoop config DESKTOP_SHORTCUT true
(安装脚本默认配置) -
禁用:
scoop config DESKTOP_SHORTCUT false
或scoop config rm DESKTOP_SHORTCUT
-
-
支持自动创建控制面板卸载程序快捷方式,可通过控制面板卸载/重设应用
-
优先级:首个快捷方式名称 > 应用名称,使用
scoop_
+ 应用名称 作为注册表项,使用 bucket 名称作为发布者 -
启用:
scoop config UNINSTALL_SHORTCUT true
(安装脚本默认配置) -
禁用:
scoop config UNINSTALL_SHORTCUT false
或scoop config rm UNINSTALL_SHORTCUT
-
-
仓库同步到 Gitee,方便国内用户更新规则
- 切换到 GitHub 版本:
scoop config scoop_repo 'https://github.com/xrgzs/scoop'
- 切换到 GitHub 版本:
-
安装脚本自动配置好
7zip
、git
、aria2
、scoop-search
,并做好相关优化 -
安装脚本支持管理员权限安装,自动修复 Scoop 文件 ACL 到当前用户
安装脚本适配 PowerShell 2.0 及更高版本,支持 Windows 7 SP1 及更高版本。
irm c.xrgzs.top/c/scoop | iex
Win7 SP1 (PowerShell 2.0) 及更高版本:
(New-Object System.Net.WebClient).DownloadString('http://c.xrgzs.top/c/scoop') | iex
对于未安装 PowerShell 5.1 的系统,我们将自动安装 PowerShell 7.2,并强制使用 PowerShell 7.2 执行 Scoop。
对于 Windows PE,需要补全 C:\Windows\System32\Robocopy.exe
才可安装 Scoop。
多个可用空格分隔。
iex "& { $(irm c.xrgzs.top/c/scoop) } -Append xrok"
仅安装主程序、git、aria2,添加 main 和 sdoog。
iex "& { $(irm c.xrgzs.top/c/scoop) } -Slim"
安装到 D 盘。
iex "& { $(irm c.xrgzs.top/c/scoop) } -ScoopDir 'D:\Scoop' -ScoopGlobalDir 'D:\ScoopGlobal'"
如果已经安装 Scoop,可以切换到此专用版本。
# scoop config scoop_repo "https://gh.xrgzs.top/https://github.com/xrgzs/scoop"
scoop config scoop_repo 'https://gitee.com/xrgzs/scoop'
scoop config scoop_branch 'master'
scoop update
如果您的 Scoop 无法更新,可以执行以下命令强制更新 Scoop:
Remove-Item -Path "~\scoop\apps\scoop\current\.git\" -Recurse -Force
scoop update
或:
Push-Location "~\scoop\apps\scoop\current\"
git fetch origin master
git reset --hard origin/master
Pop-Location