mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
snap: add desktop file, icon
This commit is contained in:
parent
6325ec90dc
commit
e160c9b3be
@ -19,7 +19,9 @@ apps:
|
||||
command: usr/bin/nvim
|
||||
environment:
|
||||
HOME: /home/$USER
|
||||
VIM: $SNAP/usr/share/nvim/runtime
|
||||
VIM: $SNAP/usr/share/nvim
|
||||
VIMRUNTIME: $SNAP/usr/share/nvim/runtime
|
||||
desktop: usr/share/applications/nvim.desktop
|
||||
|
||||
parts:
|
||||
nvim:
|
||||
@ -37,6 +39,12 @@ parts:
|
||||
make-parameters:
|
||||
- CMAKE_BUILD_TYPE=Release
|
||||
- CMAKE_INSTALL_PREFIX=/usr
|
||||
override-build: |
|
||||
snapcraftctl build
|
||||
# Fix Desktop file
|
||||
sed -i 's|^Exec=nvim|Exec=/snap/bin/nvim.nvim|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/nvim.desktop
|
||||
sed -i 's|^TryExec=nvim|TryExec=/snap/bin/nvim.nvim|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/nvim.desktop
|
||||
sed -i 's|^Icon=.*|Icon=${SNAP}/usr/share/pixmaps/nvim.png|' ${SNAPCRAFT_PART_INSTALL}/usr/share/applications/nvim.desktop
|
||||
build-packages:
|
||||
- ninja-build
|
||||
- libtool
|
||||
|
Loading…
Reference in New Issue
Block a user