fix neovide desktop location
This commit is contained in:
@@ -1,6 +1,22 @@
|
||||
---
|
||||
- ansible.builtin.set_fact:
|
||||
cargopkgs: "{{ cargopkgs + ['neovide'] }}"
|
||||
neovide_cargoversioned:
|
||||
name: neovide
|
||||
version: "{{ pkgconfig_neovide.version }}"
|
||||
path: "{{ pkgconfig_neovide.install_prefix }}"
|
||||
- ansible.builtin.set_fact:
|
||||
cargoversioned: "{{ cargoversioned + [neovide_cargoversioned] }}"
|
||||
|
||||
- name: ensure directories exist
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ pkgconfig_neovide.install_prefix }}/{{ _dir }}"
|
||||
become: true
|
||||
loop:
|
||||
- share/icons
|
||||
- share/applications
|
||||
loop_control:
|
||||
loop_var: _dir
|
||||
|
||||
- name: Copy neovide icon
|
||||
become: true
|
||||
@@ -12,4 +28,4 @@
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: neovide/neovide.desktop
|
||||
dest: "{{ pkgconfige_neovide.install_prefix }}/share/applications/neovide.desktop"
|
||||
dest: "{{ pkgconfig_neovide.install_prefix }}/share/applications/neovide.desktop"
|
||||
|
||||
@@ -82,7 +82,18 @@
|
||||
loop_var: srcpkg
|
||||
when: srcpkgs|length > 0
|
||||
|
||||
- name: Install cargo packages
|
||||
- name: install cargo packages at specific version
|
||||
community.general.cargo:
|
||||
name: "{{ cargopkg.name }}"
|
||||
version: "{{ cargopkg.version }}"
|
||||
path: "{{ cargopkg.path | default(default_config.install_prefix) }}"
|
||||
locked: "{{ cargopkg.locked | default(false) }}"
|
||||
when: cargoversioned|length > 0
|
||||
loop: "{{ cargoversioned }}"
|
||||
loop_control:
|
||||
loop_var: cargopkg
|
||||
|
||||
- name: Install cargo packages at latest version
|
||||
community.general.cargo:
|
||||
name: "{{ cargopkgs }}"
|
||||
state: latest
|
||||
|
||||
Reference in New Issue
Block a user