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.
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.
* 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...
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.
The .deb package registers that script as the alternative for
a terminal emulator in the hope that various "open terminal here..."
functions in other tools will use that to detect wezterm and run
thing in the cwd.
refs: https://github.com/wez/wezterm/issues/2103
This is necessary for applications spawned via wezterm to be able to
generate apple events.
wezterm already had the text for the authorization prompt in its plist,
but because it was code signed with the default set of entitlements,
macOS didn't bother to prompt.
This commit introduces an explicit set of entitlements and uses those
when signing the executable.
I test this by manually codesigning on my laptop and confirmed that I
could run bbedit from inside wezterm.
I can't directly test the CI version of that flow on my laptop as it may
destroy my keychain if I got something wrong.
We'll have to see if the CI generated build works out!
refs: https://github.com/wez/wezterm/issues/2242
h/t to https://github.com/microsoft/vscode/issues/119787 for
clearly documenting what was needed.
I noticed that the opensuse rpms didn't show up in the latest release,
and traced it to the spec file not setting anything in the filename
to distinguish the rpm files.
This commit replaces the redhat-ish short suffix with one of our
own derived from the os info.
subst-release-info.py will need to be updated to reflect this
change, but I want to see what names are produced for the various
platforms first.
* add update-alternatives hooks for deb packages
Tested on ubuntu 20.04/21.10 and Linux Mint 20.3
* Apply suggestions from code review
Co-authored-by: Wez Furlong <wez@wezfurlong.org>