The compiled terminfo is reduced to a single artifact that CI checks
against its text source, failing on any drift.
Tests load the embedded entry and cover an XTGETTCAP response.
sccache 0.17 and later expand cargo's rustc argfile and then spawn
rustc with the full command line, which exceeds the Windows limit when
building `mux` ("The filename or extension is too long", os error 206).
v0.16.0 passes the argfile through to rustc instead.
See https://github.com/mozilla/sccache/issues/2787
Previous 23.08 runtime has been EOL for a while and some flatpak app
stores even discourage use of apps without outadated runtimes.
refs: #7767flathub/org.wezfurlong.wezterm#19
The OSTYPE isn't matching in the deploy script any longer, which
suggests that "something changed" in the image. Let's explicitly
point to a newer image: that was previously blocked because the
installer tools were not present. The associated issue has been
closed, so since we're broken right now anyway, let's move this
up and troubleshoot on the newer image.
Add a trivial little script to run `cargo cooldown update`.
The purpose of the script is to make it a little more discoverable
in the future if I or someone else forgets how this works.
https://crates.io/crates/cargo-cooldown is required to run this
script. Its purpose is to run `cargo update` while respecting
the dependency cooldown options found in cooldown.toml in the
root of the repo
This is just a quick pass to get CI more in the green, and to use
fewer resources: some of these distros are pretty old.
Note that our remaining fedora entry here is also EOL; we can
review bumping that in a separate pass.
Move the main package Requires directive before subpackage definitions in the RPM spec file. The Requires statement for the main 'wezterm' metapackage must appear before any %package subpackage sections to be properly recognized by RPM. This fixes the issue where installing the 'wezterm' virtual package would install nothing, while installing wezterm-common and wezterm-mux-server separately worked correctly.
The BUILD_REQUIRES heredoc was using a quoted delimiter ('BREQEOF'),
which prevented shell variable expansion of ${TAR_NAME}. This caused
RPM build errors when the spec file received the literal string
"wezterm-${TAR_NAME}.tar.gz" instead of the expanded filename.
Changed to an unquoted delimiter (BREQEOF) to enable variable expansion.
Uses RPM subpackages (%package -n) with a single spec file - the standard approach for generating multiple binary RPMs from one build. This allows wezterm-mux-server to be installed without GUI dependencies (X11, Wayland, fontconfig, mesa-libEGL, etc).
Changes:
- wezterm-common: CLI launcher and utilities, requires only openssl
- wezterm-gui: GUI terminal with desktop integration, requires GUI libraries
- wezterm-mux-server: Headless multiplexer server, requires only openssl
- wezterm: Metapackage requiring all three for backward compatibility
Single %build section compiles all binaries together. Works for both COPR (source RPM) and binary RPM builds.
When someone forks wezterm and submits a PR based off their main
branch, it is desirable to avoid trying to push releases or PRs
to other projects when wezterm maintainers amend the PR during
code review.
rustc emits:
```
warning: deployment target in MACOSX_DEPLOYMENT_TARGET was set to 10.9, but the minimum supported by `rustc` is 10.12
```
and so we follow that min requirement
I forgot that these continually spam my github notifications
due to the cancelled builds like 10x for each push, pr and so on.
Let's turn these back off again for now.
* 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.
* Fix filename...
The thesis was that it might help whatever borkage behind
https://github.com/orgs/community/discussions/66297 might be
happening, but it hasn't seemed to do anything useful, so
we may was well turn it back on again.
Apparently crons can interfere with the successful migration
of github actions around a repo transfer?
https://github.com/orgs/community/discussions/66297
Feels crazy! Let's try turning them off and see if that
helps the actions to start working again, more quickly
SlouchyButton mentioned in #6015 that a Fedora Openssl
packaging change was likely causing a problem for the
copr build.
The deprecated engine header has been broken out into
its own package. Add a dependency on it for Fedora 41
and Rawhide.