fixed packages to be more generic
This commit is contained in:
@@ -14,7 +14,6 @@
|
||||
Alpine: [system, source, appimage]
|
||||
default: [source, appimage]
|
||||
pkgname:
|
||||
Archlinux: ghostty
|
||||
default: ghostty
|
||||
build_deps:
|
||||
default:
|
||||
@@ -49,24 +48,19 @@
|
||||
- name: Finalise ghostty default facts
|
||||
ansible.builtin.set_fact:
|
||||
ghostty:
|
||||
version: 1.3.1
|
||||
version: "{{ ghostty_version | default('1.3.1') }}"
|
||||
base_url: https://releases.files.ghostty.org
|
||||
methods: "{{ ghostty.methods[os_family] | default(ghostty.methods.default) }}"
|
||||
pkg_deps: [zig]
|
||||
pkgname: "{{ ghostty.pkgname[os_family] | default(ghostty.pkgname.default) }}"
|
||||
build_deps: "{{ ghostty.build_deps[os_family] | default(ghostty.build_deps.default) }}"
|
||||
appimage:
|
||||
url: https://github.com/pkgforge-dev/ghostty-appimage/releases/download
|
||||
name: ghostty
|
||||
# }}}
|
||||
- name: Set ghostty facts
|
||||
ansible.builtin.set_fact:
|
||||
ghostty:
|
||||
version: "{{ ghostty_version | default(ghostty.version) }}"
|
||||
methods: "{{ ghostty.methods }}"
|
||||
source_url: "{{ ghostty.base_url }}/{{ ghostty.version }}/ghostty-{{ ghostty.version }}.tar.gz"
|
||||
archive: "ghostty-{{ ghostty.version }}.tar.gz"
|
||||
pkg_deps: "{{ ghostty.pkg_deps | default(omit) }}"
|
||||
build_deps: "{{ ghostty.build_deps }}"
|
||||
|
||||
- name: Configure ghostty
|
||||
when:
|
||||
- "'ghostty' not in __configured"
|
||||
block:
|
||||
- name: Set ghostty install method
|
||||
when:
|
||||
@@ -74,6 +68,15 @@
|
||||
ansible.builtin.set_fact:
|
||||
ghostty_imethod: "{{ imethod if imethod in ghostty.methods else ghostty.methods[0] }}"
|
||||
|
||||
- name: Configure ghostty system install
|
||||
when:
|
||||
- ghostty_imethod == 'system'
|
||||
block:
|
||||
- name: Queue ghostty to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [ghostty.pkgname] }}"
|
||||
ghostty_install: "{{ ghostty_imethod }}={{ ghostty.pkgname }}"
|
||||
|
||||
- name: Configure ghostty source install
|
||||
when:
|
||||
- ghostty_imethod == 'source'
|
||||
@@ -103,23 +106,28 @@
|
||||
build_flags:
|
||||
- "-Doptimize=ReleaseFast"
|
||||
|
||||
- name: Finalise ghostty source install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_zig: "{{ pkg_zig + [ghostty_source_install] }}"
|
||||
ghostty_install: "{{ ghostty_imethod }}={{ ghostty_source_install }}"
|
||||
|
||||
- name: Configure ghostty appimage install
|
||||
when:
|
||||
- ghostty_imethod == 'appimage'
|
||||
block:
|
||||
- name: Set ghostty appimage configuration
|
||||
ansible.builtin.set_fact:
|
||||
ghostty_appimage_install:
|
||||
url: "{{ ghostty.appimage.url }}/v{{ ghostty.version }}"
|
||||
name: "{{ ghostty.appimage.name }}"
|
||||
filename: "Ghostty-{{ ghostty.version }}-{{ architecture }}.AppImage"
|
||||
|
||||
- name: Append ghostty to pkg_appimage
|
||||
when:
|
||||
- ghostty.method == 'appimage'
|
||||
ansible.builtin.set_fact:
|
||||
pkg_appimage: "{{ pkg_appimage + ghostty }}"
|
||||
|
||||
- name: Configure ghostty system install
|
||||
when:
|
||||
- ghostty_imethod == 'system'
|
||||
block:
|
||||
- name: Queue ghostty to pkg_sys
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [ghostty.pkg] }}"
|
||||
pkg_appimage: "{{ pkg_appimage + [ghostty_appimage_install] }}"
|
||||
ghostty_install: "{{ ghostty_imethod }}={{ ghostty_appimage_install }}"
|
||||
|
||||
- name: Finalise ghostty configuration
|
||||
ansible.builtin.set_fact:
|
||||
|
||||
Reference in New Issue
Block a user