From 044b49171b31986347c7a190c37e857956dd34e1 Mon Sep 17 00:00:00 2001 From: Damien Deville Date: Wed, 1 Jan 2025 22:05:26 -0800 Subject: [PATCH 1/2] Copy terminfo into MacOS app resources Currently the terminfo file has to be downloaded from the repo and installed manually. It'd be nice to include it in the app so that a package manager like Homebrew could install it in the right place when Wezterm is installed, which is something that Alacritty does. I've chosen to include the compiled version so that package manager don't have to invoke `tic` and can just copy files around. This will result in the following being added to the Resources folder: ``` WezTerm.app/Contents/Resources/terminfo/77/wezterm ``` Once this is in I'll send a patch to update the [Homebrew formula](https://github.com/Homebrew/homebrew-cask/blob/master/Casks/w/wezterm.rb) and have it actually install the terminfo. --- ci/deploy.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/ci/deploy.sh b/ci/deploy.sh index fe96b0031d2..9af5d722761 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -35,6 +35,7 @@ case $OSTYPE in mkdir -p $zipdir/WezTerm.app/Contents/Resources cp -r assets/shell-integration/* $zipdir/WezTerm.app/Contents/Resources cp -r assets/shell-completion $zipdir/WezTerm.app/Contents/Resources + tic -xe wezterm -o $zipdir/WezTerm.app/Contents/Resources/terminfo termwiz/data/wezterm.info for bin in wezterm wezterm-mux-server wezterm-gui strip-ansi-escapes ; do # If the user ran a simple `cargo build --release`, then we want to allow From 1bf040a760e76bf78352e51723afa5ae2a5a9a76 Mon Sep 17 00:00:00 2001 From: Damien Deville Date: Thu, 2 Jan 2025 13:03:18 -0800 Subject: [PATCH 2/2] Fix filename... --- ci/deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/deploy.sh b/ci/deploy.sh index 9af5d722761..bfb066af06f 100755 --- a/ci/deploy.sh +++ b/ci/deploy.sh @@ -35,7 +35,7 @@ case $OSTYPE in mkdir -p $zipdir/WezTerm.app/Contents/Resources cp -r assets/shell-integration/* $zipdir/WezTerm.app/Contents/Resources cp -r assets/shell-completion $zipdir/WezTerm.app/Contents/Resources - tic -xe wezterm -o $zipdir/WezTerm.app/Contents/Resources/terminfo termwiz/data/wezterm.info + tic -xe wezterm -o $zipdir/WezTerm.app/Contents/Resources/terminfo termwiz/data/wezterm.terminfo for bin in wezterm wezterm-mux-server wezterm-gui strip-ansi-escapes ; do # If the user ran a simple `cargo build --release`, then we want to allow