mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -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
|
command: usr/bin/nvim
|
||||||
environment:
|
environment:
|
||||||
HOME: /home/$USER
|
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:
|
parts:
|
||||||
nvim:
|
nvim:
|
||||||
@ -37,6 +39,12 @@ parts:
|
|||||||
make-parameters:
|
make-parameters:
|
||||||
- CMAKE_BUILD_TYPE=Release
|
- CMAKE_BUILD_TYPE=Release
|
||||||
- CMAKE_INSTALL_PREFIX=/usr
|
- 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:
|
build-packages:
|
||||||
- ninja-build
|
- ninja-build
|
||||||
- libtool
|
- libtool
|
||||||
|
Loading…
Reference in New Issue
Block a user