mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 13:52:55 +03:00
ci: fixup build on macos where --target is in use
This commit is contained in:
parent
d56c5178da
commit
1415e9ce4d
@ -469,9 +469,14 @@ impl ConfigInner {
|
||||
let mut config = Config::default_config();
|
||||
config.font_locator = FontLocatorSelection::ConfigDirsOnly;
|
||||
let exe_name = std::env::current_exe().unwrap();
|
||||
let exe_dir = exe_name.parent().unwrap();
|
||||
config.font_dirs.push(exe_dir.join("../../../assets/fonts"));
|
||||
// If we're building for a specific target, the dir
|
||||
// level is one deeper.
|
||||
#[cfg(target_os = "macos")]
|
||||
config
|
||||
.font_dirs
|
||||
.push(exe_name.parent().unwrap().join("../../../assets/fonts"));
|
||||
.push(exe_dir.join("../../../../assets/fonts"));
|
||||
// Specify the same DPI used on non-mac systems so
|
||||
// that we have consistent values regardless of the
|
||||
// operating system that we're running tests on
|
||||
|
Loading…
Reference in New Issue
Block a user