Change vim download source. Move vimtutor into own manifest

This commit is contained in:
Simon Hartcher 2017-03-21 11:16:02 +11:00
parent 8a95e0055d
commit 0f700c9d1f
2 changed files with 43 additions and 20 deletions

View File

@ -1,34 +1,46 @@
{ {
"homepage": "http://www.vim.org", "homepage": "http://www.vim.org",
"license": "http://vimdoc.sourceforge.net/htmldoc/uganda.html#license", "license": "http://vimdoc.sourceforge.net/htmldoc/uganda.html#license",
"version": "8.0.069", "version": "8.0.0495",
"url": [ "architecture": {
"http://ftp.vim.org/pub/vim/pc/vim80-069w32.zip", "32bit": {
"http://ftp.vim.org/pub/vim/pc/vim80-069rt.zip", "url": "https://github.com/vim/vim-win32-installer/releases/download/v8.0.0495/gvim_8.0.0495_x86.zip",
"https://sourceforge.net/projects/gettext/files/libiconv-win32/1.9.1/libiconv-1.9.1.bin.woe32.zip", "hash": "0f06dfc6166daf0441423cefa9f57e2a910948328ba95cfe86e2881e7477c847"
"https://sourceforge.net/projects/gettext/files/gettext-win32/0.13.1/gettext-runtime-0.13.1.bin.woe32.zip", },
"https://raw.github.com/lukesampson/psutils/3653063/vimtutor.ps1" "64bit": {
"url": "https://github.com/vim/vim-win32-installer/releases/download/v8.0.0495/gvim_8.0.0495_x64.zip",
"hash": "5a96e2818c554367432b036fbf5a4ff7857364f28bae6f4551a15aa7fb9e4bc4"
}
},
"extract_dir": "vim\\vim80",
"bin": [
"vim.exe",
"gvim.exe"
], ],
"hash": [ "post_install": "if(!(test-path ~\\.vimrc)) {
"15D8CE633137822925056AF33E4BBB438E6C3603B6594897C51D3BE6542CAAB1",
"482B3AEF45C3731B205D7C5FE59E0CCA7542AAE9B447F46B4792B89F2F79E01E",
"c0aa25c4c16f297a262dbcfcac7bed95d2cb2dc39603eac10e5d79be50a562a3",
"68a49890f4469afebb24c28d2f1396f019607f3acc137963de0da789d93dc58f",
"f6081071fa95a6f49c049e9d2aed2d2a2632ec47635b4b497a97bab5f5add498"
],
"extract_dir": [ "vim\\vim80", "vim\\vim80", "bin", "bin" ],
"bin": [ "vim.exe", "vimtutor.ps1" ],
"post_install": "mv -force \"$dir\\intl.dll\" \"$dir\\libintl.dll\"
if(!(test-path ~\\.vimrc)) {
cp \"$dir\\vimrc_example.vim\" ~\\.vimrc cp \"$dir\\vimrc_example.vim\" ~\\.vimrc
\"set shell=$((gcm powershell).path)\\ -executionpolicy\\ bypass\" | out-file ~\\.vimrc -append -encoding ascii \"set shell=$((gcm powershell).path)\\ -executionpolicy\\ bypass\" | out-file ~\\.vimrc -append -encoding ascii
echo '~/.vimrc was created with your shell set to Powershell.' echo '~/.vimrc was created with your shell set to Powershell.'
} else { echo '~/.vimrc exists, skipping' }", } else { echo '~/.vimrc exists, skipping' }",
"checkver": { "checkver": {
"url": "http://www.vim.org/download.php", "github": "https://github.com/vim/vim-win32-installer"
"re": "latest version \\(currently ([\\d.]+)\\)"
}, },
"env_set": { "env_set": {
"VIM": "$dir" "VIM": "$dir"
},
"autoupdate": {
"architecture": {
"32bit": {
"url": "https://github.com/vim/vim-win32-installer/releases/download/v$version/gvim_$version_x86.zip",
"extract_dir": "vim\\vim$majorVersion$minorVersion"
},
"64bit": {
"url": "https://github.com/vim/vim-win32-installer/releases/download/v$version/gvim_$version_x64.zip",
"extract_dir": "vim\\vim$majorVersion$minorVersion"
}
}
},
"suggest": {
"vimtutor": "vimtutor"
} }
} }

11
vimtutor.json Normal file
View File

@ -0,0 +1,11 @@
{
"version": "3653063",
"license": "https://github.com/lukesampson/psutils/blob/master/LICENSE",
"url": "https://raw.github.com/lukesampson/psutils/3653063/vimtutor.ps1",
"homepage": "https://github.com/lukesampson/psutils",
"hash": "f6081071fa95a6f49c049e9d2aed2d2a2632ec47635b4b497a97bab5f5add498",
"bin": "vimtutor.ps1",
"suggests": {
"vim": "vim"
}
}