From c544e76d06bfb41cf3c811325e14fe09128e5040 Mon Sep 17 00:00:00 2001 From: Scott Ames Date: Sat, 4 May 2024 17:42:18 -0700 Subject: [PATCH] feat: install wezterm native (#51) --- .github/renovate.json5 | 10 +++++++++- config/common-scripts-post-packages.yml | 2 ++ config/scripts/wezterm.sh | 25 +++++++++++++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 config/scripts/wezterm.sh diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 15b7aa9..dd4e85c 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -51,6 +51,14 @@ "matchPackagePatterns": ["fedora"], "matchManagers": ["github-actions"], "enabled": false - } + }, + { + "fileMatch": [ + "config/scripts/wezterm.sh" + ], + "matchStrings": [ + '# renovate: depName=(?.*) datasource=(?.*)\\n.*?[vV][eE][rR][sS][iI][oO][nN]=\\"(?.+)\\"' + ], + }, ] } diff --git a/config/common-scripts-post-packages.yml b/config/common-scripts-post-packages.yml index ab40715..c53c714 100644 --- a/config/common-scripts-post-packages.yml +++ b/config/common-scripts-post-packages.yml @@ -1,3 +1,4 @@ +--- type: script scripts: - 1Password.sh @@ -5,3 +6,4 @@ scripts: - signing.sh - update-ca-trust.sh - vivaldi.sh + - wezterm.sh diff --git a/config/scripts/wezterm.sh b/config/scripts/wezterm.sh new file mode 100644 index 0000000..56acc70 --- /dev/null +++ b/config/scripts/wezterm.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +set -ex + +# renovate: depName=wez/wezterm datasource=github-releases +WEZTERM_RELEASE="20240203-110809-5046fc22" +WEZTERM_RELEASE_UNDERSCORE="${WEZTERM_RELEASE//-/_}" +# TODO: track fedora release (and arch?) [fedora 40 not available yet...] +WEZTERM_FILENAME="wezterm-${WEZTERM_RELEASE_UNDERSCORE}-1.fedora39.x86_64.rpm" + +TMP_DIR=$(mktemp -d) +pushd "${TMP_DIR}" + +curl -fsSL -O \ + "https://github.com/wez/wezterm/releases/download/${WEZTERM_RELEASE}/${WEZTERM_FILENAME}" +curl -fsSL -O \ + "https://github.com/wez/wezterm/releases/download/${WEZTERM_RELEASE}/${WEZTERM_FILENAME}.sha256" + +sha256sum -c "${WEZTERM_FILENAME}.sha256" + +rpm-ostree install "${WEZTERM_FILENAME}" + +popd + +rm -rf "${TMP_DIR}"