Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
feat: install wezterm native (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
scottames authored May 5, 2024
1 parent 1afca02 commit c544e76
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@
"matchPackagePatterns": ["fedora"],
"matchManagers": ["github-actions"],
"enabled": false
}
},
{
"fileMatch": [
"config/scripts/wezterm.sh"
],
"matchStrings": [
'# renovate: depName=(?<depName>.*) datasource=(?<datasource>.*)\\n.*?[vV][eE][rR][sS][iI][oO][nN]=\\"(?<currentValue>.+)\\"'
],
},
]
}
2 changes: 2 additions & 0 deletions config/common-scripts-post-packages.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
type: script
scripts:
- 1Password.sh
# this sets up the proper policy & signing files for signed images to work
- signing.sh
- update-ca-trust.sh
- vivaldi.sh
- wezterm.sh
25 changes: 25 additions & 0 deletions config/scripts/wezterm.sh
Original file line number Diff line number Diff line change
@@ -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}"

0 comments on commit c544e76

Please sign in to comment.