src build is now default on linux
This commit is contained in:
@@ -6,6 +6,8 @@
|
|||||||
method: "{{ pkgconfig.ghostty.methods[ansible_distribution] | default(pkgconfig.ghostty.methods.default) }}"
|
method: "{{ pkgconfig.ghostty.methods[ansible_distribution] | default(pkgconfig.ghostty.methods.default) }}"
|
||||||
|
|
||||||
- name: Set ghostty config
|
- name: Set ghostty config
|
||||||
|
when:
|
||||||
|
- ghostty.method == 'src'
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
ghostty:
|
ghostty:
|
||||||
method: "{{ ghostty.method }}"
|
method: "{{ ghostty.method }}"
|
||||||
@@ -17,6 +19,16 @@
|
|||||||
build_deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
|
build_deps: "{{ pkgconfig.ghostty.build_deps[ansible_os_family] }}"
|
||||||
optimize: "{{ pkgconfig.ghostty.optimize }}"
|
optimize: "{{ pkgconfig.ghostty.optimize }}"
|
||||||
|
|
||||||
|
- name: Set ghostty package manager install
|
||||||
|
when:
|
||||||
|
- ghostty.method == 'sys' or
|
||||||
|
ghostty.method == 'cask'
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
ghostty:
|
||||||
|
method: "{{ ghostty.method }}"
|
||||||
|
pkg: "{{ pkconfig.ghostty[ghostty.method] }}"
|
||||||
|
pkg_repo: "{{ pkgconfig.ghostty.pkg_repo[ansible_distribution] | default(omit) }}"
|
||||||
|
|
||||||
- name: Set ghostty config for appimage install
|
- name: Set ghostty config for appimage install
|
||||||
when:
|
when:
|
||||||
- ghostty.method == 'appimage'
|
- ghostty.method == 'appimage'
|
||||||
|
|||||||
@@ -8,45 +8,46 @@
|
|||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: config/ghostty.yml
|
file: config/ghostty.yml
|
||||||
|
|
||||||
- name: Source ghostty pkg installation
|
- name: Append ghostty to pkg_src
|
||||||
when:
|
when:
|
||||||
- ghostty.method == 'src'
|
- ghostty.method == 'src'
|
||||||
- ansible_distribution != 'MacOSX'
|
notify:
|
||||||
block:
|
- Depend zig
|
||||||
- name: Append ghostty build deps to pkg_sys
|
changed_when: true
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + ghostty.build_deps }}"
|
pkg_src: "{{ pkg_src + ghostty.pkg }}"
|
||||||
|
pkg_sys: "{{ pkg_sys + ghostty.build_deps }}"
|
||||||
- name: Append ghostty to pkg_src
|
|
||||||
notify:
|
|
||||||
- Depend zig
|
|
||||||
changed_when: true
|
|
||||||
ansible.builtin.set_fact:
|
|
||||||
pkg_src: "{{ pkg_src + ghostty.pkg }}"
|
|
||||||
|
|
||||||
- name: Append ghostty to pkg_appimage
|
- name: Append ghostty to pkg_appimage
|
||||||
when:
|
when:
|
||||||
- ghostty.method == 'appimage'
|
- ghostty.method == 'appimage'
|
||||||
- ansible_distribution != 'MacOSX'
|
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_appimage: "{{ pkg_appimage + ghostty }}"
|
pkg_appimage: "{{ pkg_appimage + ghostty }}"
|
||||||
|
|
||||||
- name: Sys pkg installation
|
- name: Install ghostty via package manager
|
||||||
when:
|
when:
|
||||||
- ghostty.method == 'sys'
|
- ghostty.method == 'sys'
|
||||||
block:
|
block:
|
||||||
- name: Append ghostty to pkg_sys
|
- name: Enable repo for ghostty
|
||||||
when:
|
when:
|
||||||
- ansible_distribution == 'Fedora'
|
- ansible_distribution == 'Fedora'
|
||||||
notify:
|
|
||||||
- Depend terra repo
|
|
||||||
changed_when: true
|
changed_when: true
|
||||||
|
ansible.builtin.get_url:
|
||||||
|
mode: '0644'
|
||||||
|
decompress: false
|
||||||
|
backup: false
|
||||||
|
url: "{{ ghostty.pkg_repo.url }}"
|
||||||
|
dest: "{{ ghostty.pkg_repo.dest }}"
|
||||||
|
|
||||||
|
- name: Append ghostty to pkg_sys
|
||||||
|
when:
|
||||||
|
- ansible_distriubtion
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_sys: "{{ pkg_sys + ghostty.pkg }}"
|
pkg_sys: "{{ pkg_sys + ghostty.pkg }}"
|
||||||
|
|
||||||
- name: Append ghostty to pkg_cask
|
- name: Append ghostty to pkg_cask
|
||||||
when:
|
when:
|
||||||
- ghostty.method == 'brew'
|
- ghostty.method == 'cask'
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_cask: "{{ pkg_cask + ghostty.pkg }}"
|
pkg_cask: "{{ pkg_cask + ghostty.pkg }}"
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,10 @@ ghostty:
|
|||||||
- ghostty
|
- ghostty
|
||||||
src:
|
src:
|
||||||
- ghostty
|
- ghostty
|
||||||
|
pkg_repo:
|
||||||
|
Fedora:
|
||||||
|
url: https://terra.fyralabs.com/terra.repo
|
||||||
|
dest: /etc/yum.repos.d/terra.repo
|
||||||
methods:
|
methods:
|
||||||
default: src
|
default: src
|
||||||
Fedora: sys
|
|
||||||
MacOSX: cask
|
MacOSX: cask
|
||||||
|
|||||||
Reference in New Issue
Block a user