Created
October 13, 2023 20:06
-
-
Save jayv/1844442bdd5ae243daeadef4e4742cb5 to your computer and use it in GitHub Desktop.
Build and install neovim from stable tag on ubuntu as a .deb pkg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /bin/bash | |
# run from inside a neovim clone, eg: | |
# git clone https://github.com/neovim/neovim.git | |
set -euo | |
echo building latest stable neovim | |
# update all remote data | |
git fetch origin --tags --force | |
# switch to latest remote/stable tag | |
git checkout tags/stable | |
# build all things | |
make clean | |
make CMAKE_BUILD_TYPE=RelWithDebInfo | |
cd build && cpack -G DEB | |
# Install the new package | |
sudo dpkg -i nvim-linux64.deb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment