File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22set -e
3- PLUGINS=" $HOME /.local/share/nvim/site/pack/plugins/start"
4- mkdir -p " $PLUGINS "
5-
6- wget " https://github.com/neovim/neovim/releases/download/${NVIM_TAG-stable} /nvim.appimage"
3+ version=" ${NVIM_TAG-stable} "
4+ dl_name=" nvim-linux-x86_64.appimage"
5+ # The appimage name changed in v0.10.4
6+ if python -c ' from packaging.version import Version; import sys; sys.exit(not (Version(sys.argv[1]) < Version("v0.10.4")))' " $version " 2> /dev/null; then
7+ dl_name=" nvim.appimage"
8+ fi
9+ curl -sL " https://github.com/neovim/neovim/releases/download/${version} /${dl_name} " -o nvim.appimage
710chmod +x nvim.appimage
811./nvim.appimage --appimage-extract > /dev/null
912rm -f nvim.appimage
1013mkdir -p ~ /.local/share/nvim
1114mv squashfs-root ~ /.local/share/nvim/appimage
1215sudo ln -s " $HOME /.local/share/nvim/appimage/AppRun" /usr/bin/nvim
16+ /usr/bin/nvim --version
Original file line number Diff line number Diff line change 5454 - v0.8.3
5555 - v0.9.4
5656 - v0.10.0
57+ - v0.10.4
5758
5859 name : Run tests
5960 runs-on : ubuntu-22.04
You can’t perform that action at this time.
0 commit comments