fix neovide desktop location

This commit is contained in:
Matthew Stobbs
2025-01-26 08:58:33 -07:00
parent e1c330be7b
commit 7b7b33271f
4 changed files with 31 additions and 3 deletions

View File

@@ -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"

View File

@@ -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

View File

@@ -12,6 +12,7 @@ default_config:
# install lists
brewtaps: []
cargopkgs: []
cargoversioned: []
caskpkgs: []
gopkgs: []
npmpkgs: []