10 Star 65 Fork 0

Gitee 极速下载/chocolatey

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/chocolatey/chocolatey
克隆/下载
setup.ps1 649 Bytes
一键复制 编辑 原始数据 按行查看 历史
### install chocolatey ###
if(-not $env:ChocolateyInstall -or -not (Test-Path "$env:ChocolateyInstall")){
iex ((new-object net.webclient).DownloadString("https://chocolatey.org/install.ps1"))
} else {
Write-Host "Chocolatey Install located at $($env:ChocolateyInstall)"
}
$chocoDir = $env:ChocolateyInstall
if(!$chocoDir){$chocoDir="$env:AllUsersProfile\chocolatey"}
if(!(Test-Path($chocoDir))){$chocoDir="$env:SystemDrive\chocolatey"}
$chocoDir = $chocoDir.Replace("\bin","")
$env:Path +=";$chocoDir\bin;"
Write-Host "Path is $($env:Path)"
# install nuget if it is missing
cinst nuget.commandline
cinst pester -version 2.0.2
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/chocolatey.git
[email protected]:mirrors/chocolatey.git
mirrors
chocolatey
chocolatey
master

搜索帮助