Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy terminfo into MacOS app resources #6538

Merged
merged 2 commits into from
Feb 8, 2025

Conversation

ddeville
Copy link
Contributor

@ddeville ddeville commented Jan 2, 2025

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 and have it actually install the terminfo.

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.
ddeville added a commit to ddeville/homebrew-cask that referenced this pull request Jan 2, 2025
The compiled terminfo entry was added to the app bundle (see
wezterm/wezterm#6538) so install it in
`~/.terminfo`.
ddeville added a commit to ddeville/homebrew-cask that referenced this pull request Jan 2, 2025
The compiled terminfo entry was added to the app bundle (see
wezterm/wezterm#6538) so install it in
`~/.terminfo` on behalf of the user.
@wez wez merged commit 54af65d into wezterm:main Feb 8, 2025
1 check was pending
@wez
Copy link
Member

wez commented Feb 8, 2025

Thanks!

wez added a commit that referenced this pull request Feb 8, 2025
@wez
Copy link
Member

wez commented Feb 8, 2025

Note that the CI is currently borked due to the move to an org, I expect that it will unbork itself in a couple of days; until then, the homebrew side of this will likely need to wait.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants