Add download verification with signature and SHA256 support

This commit is contained in:
2026-02-28 00:05:43 +02:00
parent e52397f64b
commit a515ee6b4f
4 changed files with 310 additions and 0 deletions

View File

@@ -1757,6 +1757,14 @@ impl Database {
Ok(())
}
pub fn set_verification_status(&self, id: i64, status: &str) -> SqlResult<()> {
self.conn.execute(
"UPDATE appimages SET verification_status = ?2 WHERE id = ?1",
params![id, status],
)?;
Ok(())
}
// --- Launch statistics ---
pub fn get_top_launched(&self, limit: i32) -> SqlResult<Vec<(String, u64)>> {