Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
122 lines
3.7 KiB
Batchfile
122 lines
3.7 KiB
Batchfile
@PowerShell -ExecutionPolicy Bypass -Command Invoke-Expression $('$args=@(^&{$args} %*);'+[String]::Join(';',(Get-Content '%~f0') -notmatch '^^@PowerShell.*EOF$')) & goto :EOF
|
||
|
||
echo " /###### /## /##/## "
|
||
echo " /##__ ## | ## | #|__/ "
|
||
echo " | ## \__/ /###### /###### /####### /######| ## | ##/##/######/#### "
|
||
echo " | ###### /##__ ##|____ ##/##_____//##__ #| ## / ##| #| ##_ ##_ ##"
|
||
echo " \____ #| ## \ ## /######| ## | ########\ ## ##/| #| ## \ ## \ ##"
|
||
echo " /## \ #| ## | ##/##__ #| ## | ##_____/ \ ###/ | #| ## | ## | ##"
|
||
echo " | ######| #######| ######| ######| ####### \ #/ | #| ## | ## | ##"
|
||
echo " \______/| ##____/ \_______/\_______/\_______/ \_/ |__|__/ |__/ |__/"
|
||
echo " | ## "
|
||
echo " | ## "
|
||
echo " |__/ "
|
||
echo " 版本: 2.4.0-dev 中文官网: https://spacevim.org/cn/ "
|
||
|
||
Push-Location ~
|
||
|
||
$app_name = "SpaceVim"
|
||
$repo_url = "https://spacevim.org/git/repos/SpaceVim/"
|
||
$repo_name = "SpaceVim"
|
||
$repo_path = "$HOME\.SpaceVim"
|
||
|
||
Function Pause ($Message = "请按任意按键继续 . . . ") {
|
||
if ((Test-Path variable:psISE) -and $psISE) {
|
||
$Shell = New-Object -ComObject "WScript.Shell"
|
||
$Button = $Shell.Popup("Click OK to continue.", 0, "Script Paused", 0)
|
||
} else {
|
||
Write-Host -NoNewline $Message
|
||
[void][System.Console]::ReadKey($true)
|
||
Write-Host
|
||
}
|
||
}
|
||
|
||
echo "==> 开始检测环境依赖..."
|
||
echo ""
|
||
sleep 1
|
||
|
||
|
||
echo "==> 测试 git 命令"
|
||
if (Get-Command "git" -ErrorAction SilentlyContinue) {
|
||
git version
|
||
echo "[OK] 测试成功. 开始下一个测试..."
|
||
sleep 1
|
||
} else {
|
||
echo ""
|
||
echo "[ERROR] 无法在你的 PATH 中发现 'git.exe' 命令"
|
||
echo ">>> 准备退出......"
|
||
Pause
|
||
exit
|
||
}
|
||
|
||
echo ""
|
||
|
||
echo "==> 测试 vim 命令"
|
||
if (Get-Command "vim" -ErrorAction SilentlyContinue) {
|
||
echo ($(vim --version) -split '\n')[0]
|
||
echo "[OK] 测试成功. 开始下一个测试..."
|
||
sleep 1
|
||
} else {
|
||
echo "[WARNING] 无法在你的 PATH 中发现 'vim' 命令. 但仍可继续安装..."
|
||
echo ""
|
||
echo "[WARNING] 请后续安装 vim 或者正确设置你的 PATH! "
|
||
Pause
|
||
}
|
||
|
||
echo "==> 测试 nvim 命令"
|
||
if (Get-Command "nvim" -ErrorAction SilentlyContinue) {
|
||
echo ($(nvim --version) -split '\n')[0]
|
||
echo "[OK] 测试成功. 开始下一个测试..."
|
||
sleep 1
|
||
} else {
|
||
echo "[WARNING] 无法在你的 PATH 中发现 'nvim' 命令. 但仍可继续安装..."
|
||
echo ""
|
||
echo "[WARNING] 请后续安装 Neovim 或者正确设置你的 PATH! "
|
||
Pause
|
||
}
|
||
|
||
echo "<== 环境依赖检测已完成. 继续下一步..."
|
||
sleep 1
|
||
echo ""
|
||
echo ""
|
||
|
||
if (!(Test-Path "$HOME\.SpaceVim")) {
|
||
echo "==> 正在安装 $app_name"
|
||
git clone --depth 1 $repo_url $repo_path
|
||
} else {
|
||
echo "==> 正在更新 $app_name"
|
||
Push-Location $repo_path
|
||
git pull origin master
|
||
}
|
||
|
||
echo ""
|
||
if (!(Test-Path "$HOME\vimfiles")) {
|
||
cmd /c mklink /J $HOME\vimfiles $repo_path
|
||
echo "[OK] 已为 vim 安装 SpaceVim"
|
||
sleep 1
|
||
} else {
|
||
echo "[OK] $HOME\vimfiles 已存在"
|
||
sleep 1
|
||
}
|
||
|
||
echo ""
|
||
if (!(Test-Path "$HOME\AppData\Local\nvim")) {
|
||
cmd /c mklink /J "$HOME\AppData\Local\nvim" $repo_path
|
||
echo "[OK] 已为 neovim 安装 SpaceVim"
|
||
sleep 1
|
||
} else {
|
||
echo "[OK] $HOME\AppData\Local\nvim 已存在"
|
||
sleep 1
|
||
}
|
||
|
||
echo ""
|
||
echo "安装已完成!"
|
||
echo "=============================================================================="
|
||
echo "== 打开 Vim 或 Neovim,所有插件将会自动安装 =="
|
||
echo "=============================================================================="
|
||
echo ""
|
||
echo "感谢支持 SpaceVim,欢迎反馈!"
|
||
echo ""
|
||
|
||
Pause
|