mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 02:40:05 +08:00
Add windows installer
This commit is contained in:
parent
cfdcf759d8
commit
bc75c10786
@ -34,6 +34,8 @@ At a minimum, SpaceVim requires `git` to be installed. For a better graphical e
|
|||||||
|
|
||||||
### Install
|
### Install
|
||||||
|
|
||||||
|
#### Linux and macOS
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
curl -sLf https://spacevim.org/install.sh | bash
|
curl -sLf https://spacevim.org/install.sh | bash
|
||||||
```
|
```
|
||||||
@ -46,6 +48,10 @@ For more info about the install script, please check:
|
|||||||
curl -sLf https://spacevim.org/install.sh | bash -s -- -h
|
curl -sLf https://spacevim.org/install.sh | bash -s -- -h
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### Windows
|
||||||
|
|
||||||
|
The easist way is to download [install.cmd](https://spacevim.org/install.cmd) and run it as administrator, or install SpaceVim manually.
|
||||||
|
|
||||||
### Project layout
|
### Project layout
|
||||||
|
|
||||||
├─ autoload/SpaceVim/api/ SpaceVim APIs
|
├─ autoload/SpaceVim/api/ SpaceVim APIs
|
||||||
|
@ -1 +1,49 @@
|
|||||||
@PowerShell -ExecutionPolicy Bypass -Command Invoke-Expression $('$args=@(^&{$args} %*);'+[String]::Join(';',(Get-Content '%~f0') -notmatch '^^@PowerShell.*EOF$')) & goto :EOF
|
@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 " version : 0.5.0-dev by : spacevim.org "
|
||||||
|
|
||||||
|
Push-Location ~
|
||||||
|
|
||||||
|
$app_name = "SpaceVim"
|
||||||
|
$repo_url = "https://github.com/SpaceVim/SpaceVim.git"
|
||||||
|
$repo_name = "SpaceVim"
|
||||||
|
$repo_path = "$HOME\.SpaceVim"
|
||||||
|
|
||||||
|
if (!(Test-Path "$HOME\.SpaceVim")) {
|
||||||
|
echo "==> Trying to clone $app_name"
|
||||||
|
git clone $repo_url $repo_path
|
||||||
|
} else {
|
||||||
|
echo "==> Trying to update $app_name"
|
||||||
|
Push-Location $repo_path
|
||||||
|
git pull origin dev
|
||||||
|
}
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
if (!(Test-Path "$HOME\vimfiles")) {
|
||||||
|
cmd /c mklink $HOME\vimfiles $repo_path
|
||||||
|
} else {
|
||||||
|
echo "[OK] vimfiles already exists"
|
||||||
|
}
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Almost done!"
|
||||||
|
echo "=============================================================================="
|
||||||
|
echo "== Open GVim and it will install the plugins automatically =="
|
||||||
|
echo "=============================================================================="
|
||||||
|
echo ""
|
||||||
|
echo "That's it. Thanks for installing $app_name. Enjoy!"
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
pause
|
||||||
|
Loading…
Reference in New Issue
Block a user