diff --git a/src/plugins/device/mod.rs b/src/plugins/device/mod.rs index 972f0ea..e85b08e 100644 --- a/src/plugins/device/mod.rs +++ b/src/plugins/device/mod.rs @@ -87,7 +87,7 @@ impl Plugin for DevicePlugin { fn info(&self) -> PluginInfo { PluginInfo { name: "Device Manager".to_string(), - version: "0.1.0".to_string(), + version: env!("CARGO_PKG_VERSION").to_string(), description: format!("统一设备管理插件 ({})", self.backend.name()), platform: Platform::Any, } diff --git a/src/plugins/http/routes.rs b/src/plugins/http/routes.rs index 3aeaed3..6f9b73c 100644 --- a/src/plugins/http/routes.rs +++ b/src/plugins/http/routes.rs @@ -526,7 +526,7 @@ fn app_info_route( Ok::<_, Infallible>(json_response( StatusCode::OK, &AppInfoResponse { - version: "0.1.0".to_string(), + version: env!("CARGO_PKG_VERSION").to_string(), apk_available: apk_size.is_some(), apk_size, download_url: "/download/showen-app.apk",