mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 22:01:47 +03:00
4d71a7913a
This commit adjusts the window layer to have it try to load EGL
implementations on macOS. This is important as the system
provided OpenGL implementation is deprecated and I wanted to
have a path forward for when it is finally removed.
If EGL fails to initialize, we fall back to the CGL/OpenGL
implementation that we used previously.
I've included binaries built for 64-bit intel from the MetalANGLE
project; here's how I built them:
```
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git --depth 1
git clone https://github.com/kakashidinho/metalangle --depth 1
cd metalangle
PATH=$PWD/../depot_tools:$PATH python scripts/bootstrap.py
PATH=$PWD/../depot_tools:$PATH gclient sync
PATH=$PWD/../depot_tools:$PATH gn --args="is_debug=false angle_enable_metal=true angle_enable_vulkan=false angle_enable_gl=false angle_build_all=false" gen out/Release
PATH=$PWD/../depot_tools:$PATH autoninja -C out/Release
```
Those steps are a little too long to want to put them directly
into the wezterm CI.
It is important for metalangle to be >= 8230df39a5
in order for scaling to be handled correctly when dragging windows
between monitors.
refs: https://github.com/kakashidinho/metalangle/issues/34
20 lines
907 B
Ruby
20 lines
907 B
Ruby
# Note: if you are viewing this from the tap repo, this file is automatically
|
|
# updated from:
|
|
# https://github.com/wez/wezterm/blob/master/ci/wezterm-homebrew-macos.rb.template
|
|
# by automation in the wezterm repo.
|
|
|
|
class Wezterm < Formula
|
|
desc "A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust"
|
|
homepage "https://wezfurlong.org/wezterm/"
|
|
url "https://github.com/wez/wezterm/releases/download/20200909-002054-4c9af461-174-g2bac3a90/WezTerm-macos-20200909-002054-4c9af461-174-g2bac3a90.zip"
|
|
sha256 "503b9d8ea797dc9689310c9eaaeb31ed1f6b30e68a0aaba3f4851dc7004ee6f8"
|
|
head "https://github.com/wez/wezterm/releases/download/nightly/WezTerm-macos-nightly.zip"
|
|
|
|
def install
|
|
prefix.install "WezTerm.app"
|
|
bin.write_exec_script "#{prefix}/WezTerm.app/wezterm"
|
|
bin.write_exec_script "#{prefix}/WezTerm.app/strip-ansi-escapes"
|
|
end
|
|
end
|
|
|