mirror of
https://github.com/Stremio/stremio-shell-ng.git
synced 2026-01-11 22:40:32 +00:00
IPC return the app version from Cargo.toml
This commit is contained in:
parent
d40c757973
commit
bab059fe3f
1 changed files with 3 additions and 1 deletions
|
|
@ -2,6 +2,8 @@ use serde::{Deserialize, Serialize};
|
|||
use serde_json::{self, json};
|
||||
use std::cell::RefCell;
|
||||
|
||||
const VERSION: &str = env!("CARGO_PKG_VERSION");
|
||||
|
||||
pub type Channel = RefCell<Option<(flume::Sender<String>, flume::Receiver<String>)>>;
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||
|
|
@ -64,7 +66,7 @@ impl RPCResponse {
|
|||
"".to_string(),
|
||||
"shellVersion".to_string(),
|
||||
"".to_string(),
|
||||
"5.0.0".to_string(),
|
||||
VERSION.to_string(),
|
||||
],
|
||||
],
|
||||
signals: vec![],
|
||||
|
|
|
|||
Loading…
Reference in a new issue