fc_install: Switch to .tar.xz archives

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
Fini Jastrow 2026-09-03 15:04:49 +02:00
parent b5ea9ed785
commit 2abb0b7ab1

View file

@ -219,7 +219,7 @@ EOF
nerd.released_archives() {
# Returns pairs of "Archive-basename asset-ID"
local archive_suffix=.zip
local archive_suffix=.tar.xz
local assets_regex="^ *\"assets\":"
local aid_regex="^ *\"id\":"
local name_regex="^ *\"name\":"
@ -284,9 +284,9 @@ nerd.install_font() {
(
set -e
local dst
gh.download_asset "${1}.zip" "${aid}"
gh.download_asset "${1}.tar.xz" "${aid}"
mkdir -p "${1}"
unzip -q -o -d "${1}" "${1}.zip"
tar xf "${1}.tar.xz" -C "${1}"
mkdir -p "$FONT_DIR"
for filename in "${1}"/*; do
if sh.in_array "${filename##*.}" "${FONT_FORMATS[@]}"; then