ScoopInstaller 组织的国内镜像,纯净无修改,使用 Github Actions 自动同步
设置执行策略
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
下载安装脚本
Invoke-RestMethod -Uri https://gitee.com/scoop-installer-mirrors/Install/releases/download/install/install.ps1 -OutFile install.ps1
执行安装脚本
.\install.ps1 -ScoopDir "D:\scoop"
设置环境变量
[Environment]::SetEnvironmentVariable("SCOOP_GLOBAL", "D:\scoop-global", "Machine")
执行安装脚本
.\install.ps1 -ScoopDir "D:\scoop" -ScoopGlobalDir "D:\scoop-global"
设置 scoop 仓库
scoop config scoop_repo https://gitee.com/scoop-installer-mirrors/Scoop
添加 bucket
main
scoop bucket add main https://gitee.com/scoop-installer-mirrors/Main
extras
scoop bucket add extras https://gitee.com/scoop-installer-mirrors/Extras
versions
scoop bucket add versions https://gitee.com/scoop-installer-mirrors/Versions
nerd-fonts
scoop bucket add nerd-fonts https://gitee.com/scoop-installer-mirrors/scoop-nerd-fonts
java
scoop bucket add java https://gitee.com/scoop-installer-mirrors/Java
php
scoop bucket add php https://gitee.com/scoop-installer-mirrors/PHP
nirsoft
scoop bucket add nirsoft https://gitee.com/scoop-installer-mirrors/Nirsoft
sysinternals
scoop bucket add sysinternals https://gitee.com/scoop-installer-mirrors/scoop-sysinternals
games
scoop bucket add games https://gitee.com/scoop-installer-mirrors/scoop-games
- 如果不具备特殊网络条件,无法正常下载 Github 上的软件
- 可以使用 abgox/scoop-tools 中的
scoop-install
和scoop-update
解决此问题
安装 scoop-install 和 scoop-update
scoop install abyss/abgox.scoop-install
scoop install abyss/abgox.scoop-update
设置 url 替换配置,如果有多个值,使用 |||
分割
scoop config abgox-scoop-install-url-replace-from "^https://github.com|||^https://raw.githubusercontent.com"
scoop config abgox-scoop-install-url-replace-to "https://gh-proxy.com/github.com|||https://gh-proxy.com/raw.githubusercontent.com"
后续使用 scoop-install
和 scoop-update
命令安装和更新软件即可
使用 abgox/PSCompletions 添加 scoop
命令补全
scoop install abyss/abgox.PSCompletions
Import-Module PSCompletions
psc add scoop scoop-install scoop-update
添加 i18n 支持 (由 abgox/scoop-i18n 提供)
scoop install abyss/abgox.scoop-i18n