fix(agents): import standalone JRE offline packages

This commit is contained in:
zipg authored and GitHub committed 2026-09-15 18:09:01 +08:00
1 parent 2fd8f42246
commit 168f854f8a
20 files changed
+306 -13

No files matched your search

+4 -1
View File
@@ -304,7 +304,10 @@ pub async fn import_agents_from_zip(
let result = result?;
send_progress_event(&tx, AgentProgressEvent::step("done").with_operation_id(&operation_id));
return Ok(Json(serde_json::json!({ "count": result.drivers_installed.len() as u32 })));
return Ok(Json(serde_json::json!({
"count": result.drivers_installed.len() as u32,
"jreCount": result.jre_installed.len(),
})));
}
Err(AppError::from("No file uploaded".to_string()))