Include license status in notification endpoint

This commit is contained in:
Gregory Schier
2025-05-20 08:13:57 -07:00
parent 4c3a02ac53
commit bc3a5e3e58
4 changed files with 48 additions and 60 deletions
+12
View File
@@ -16,3 +16,15 @@ pub fn init<R: Runtime>() -> TauriPlugin<R> {
.invoke_handler(generate_handler![check, activate, deactivate])
.build()
}
pub(crate) fn get_os() -> &'static str {
if cfg!(target_os = "windows") {
"windows"
} else if cfg!(target_os = "macos") {
"macos"
} else if cfg!(target_os = "linux") {
"linux"
} else {
"unknown"
}
}