diff options
author | Carlos Hernandez <carlos@techbyte.ca> | 2019-11-21 13:26:11 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-11-28 15:38:40 -0800 |
commit | e160c9b3bed69b327551575f4a010f9531498728 (patch) | |
tree | 21619b07643ebf941842ec6d9cba9a883a05c298 | |
parent | 6325ec90dce6f4280a0145160af8be5a783ce2ca (diff) | |
download | rneovim-e160c9b3bed69b327551575f4a010f9531498728.tar.gz rneovim-e160c9b3bed69b327551575f4a010f9531498728.tar.bz2 rneovim-e160c9b3bed69b327551575f4a010f9531498728.zip |
snap: add desktop file, icon
-rw-r--r-- | snap/snapcraft.yaml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index e85c269f6b..da3e74d3e7 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -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 |