1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-22 12:51:31 +03:00
wezterm/wezterm-toast-notification/build.rs
Wez Furlong 0c1ecc0fad wezterm: macos: show a toast notification when an update is available
This commit implements the deprecated NSUserNotification bits needed
to be able to handle clicking on a notification and open our choice
of URL.

Ideally we'd use the newer UserNotifications framework, but that
requires code signing.
2021-02-01 23:37:43 -08:00

6 lines
125 B
Rust

fn main() {
if cfg!(target_os = "macos") {
println!("cargo:rustc-link-lib=framework=UserNotifications");
}
}