need to test the alacritty build to make sure it's ready

This commit is contained in:
Matthew Stobbs
2026-01-24 14:25:33 -07:00
parent 1a8f402c68
commit fe364e2b6d
3 changed files with 42 additions and 11 deletions

View File

@@ -1,8 +1,6 @@
# vim: set filetype=yaml.ansible :
---
- name: Cargo source install helper
when:
- cargo_install_type == 'source'
block:
- name: Set build variables
ansible.builtin.set_fact:
@@ -37,3 +35,30 @@
mode: "0755"
remote_src: true
src: "{{ git_path }}/{{ bin_output }}"
- name: Install additional files
when:
- install_files is defined
block:
- name: Create missing directories
loop: "{{ install_files | dict2items }}"
loop_control:
loop_var: file
ansible.builtin.file:
path: "{{ install_prefix }}/{{ file.value | dirname }}"
owner: root
group: root
mode: "0755"
state: directory
- name: Copy extra files
loop: "{{ install_files | dict2items }}"
loop_control:
loop_var: file
ansible.builtin.copy:
backup: false
dest: "{{ install_prefix }}/{{ file.value }}"
owner: root
group: root
mode: "0644"
remote_src: true
src: "{{ git_path }}/{{ file.key }}"

View File

@@ -1,6 +1,7 @@
# vim: set filetype=yaml.ansible :
---
- name: Configure alacritty # {{{
when: __alacritty_configured is undefined
block:
- name: Set basic variables
ansible.builtin.set_fact:
@@ -41,10 +42,12 @@
bin_name: "alacritty"
install_prefix: "/usr/local"
install_files:
share/pixmaps:
- extra/logo/alacritty-term.svg
desktop:
extra/logo/alacritty-term.svg: share/pixmaps/Alacritty.svg
desktop_files:
- extra/linux/Alacritty.desktop
files_list:
- bin/alacritty
- share/pixmaps/Alacritty.svg
- name: Set alacritty install options
block:
@@ -99,17 +102,19 @@
block:
- name: Append alacritty to pkg_cargo
when:
- method == 'source'
- alacritty_method == 'source'
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + alacritty_build_deps }}"
pkg_cargo: "{{ pkg_cargo + [alacritty_src_install] }}"
pkg_cargo_build: "{{ pkg_cargo_build + [alacritty_src_install] }}"
- name: Append alacritty to pkg_cask
when:
- alacritty.method == 'cask'
- alacritty_method == 'cask'
ansible.builtin.set_fact:
pkg_cask: "{{ pkg_cask + [alacritty_pkgname] }}"
- name: Set alacritty_configured
- name: Append alacritty to sys_pkg
when:
- alacritty_method == 'package'
ansible.builtin.set_fact:
alacritty_configured: true
pkg_sys: "{{ pkg_sys + [alacritty_pkgname] }}"

View File

@@ -1,6 +1,7 @@
# vim: set filetype=yaml.ansible :
# variables used in ansible_role_package
---
default_install_method: package
debug: false
use_local: false
prefer_method: src