-
-
Save maorv/74866262b082e24668103da717de92b5 to your computer and use it in GitHub Desktop.
#!/bin/sh | |
echo "Install neovim from ppa" | |
sudo add-apt-repository -y ppa:neovim-ppa/unstable | |
sudo apt-get update | |
sudo apt-get install -y neovim | |
sudo apt install qt5-default libqt5widgets5 | |
echo "Compile and install neovim-qt" | |
git clone https://github.com/maorv/neovim-qt.git | |
cd neovim-qt && mkdir build && cd build | |
cmake ../ | |
cpack -G DEB -D CPACK_DEBIAN_PACKAGE_NAME=neovim-qt -D CPACK_DEBIAN_PACKAGE_MAINTAINER=`whoami` ../ | |
sudo dpkg -i neovim-qt-*.deb |
Works fine for me!
Thanks for reminding that CPack exists BTW.
Turns out, I've been using ancient Debian build of neovim-qt together with nightly nvim from neovim-ppa — because the PPA guys didn't bother to also build the Qt shell, thus mine came from the stock repos. That has led to ugly Unicode issues. Works great now!
cpack -G DEB -D CPACK_DEBIAN_PACKAGE_NAME=neovim-qt -D CPACK_DEBIAN_PACKAGE_MAINTAINER=whoami
../
returns this error message;
CPack Error: Problem running install command: /usr/bin/cmake --build . --target "preinstall"
Please check /home/pan/neovim-qt/build/_CPack_Packages/Linux/DEB/PreinstallOutput.log for errors
CPack Error: Error when generating package: neovim-qt
Can someone help me out? Thank you!
@VolailleInc did you check the PreinstallOutput.log
as the error message asks?.. It contains a compile error during make preinstall
; the bundled msgpack
library fails to compile.
... That is, if you follow literally the initial gist create_neovim_qt_deb.sh
. Which is almost 5 years old by now. Perhaps you can notice that it instructs you to compile a fork which's been devoid of activity for about the same 5 years. Compare that with the original repo which is obviously breathing and alive.
You should be fine if you just use the original git repo instead of the stale fork.
same