aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/src/northstar/install.rs
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-07-07 23:25:11 +0200
committerGitHub <noreply@github.com>2023-07-07 23:25:11 +0200
commit977b6b3971fcb1ba78e8373fc08bd3db2ae3ada9 (patch)
treef3cbeb1d33f5d07bce835c48c17c43aa21a31239 /src-tauri/src/northstar/install.rs
parent5911c0e0ccd289e58e41a80d4c097665baf43603 (diff)
downloadFlightCore-977b6b3971fcb1ba78e8373fc08bd3db2ae3ada9.tar.gz
FlightCore-977b6b3971fcb1ba78e8373fc08bd3db2ae3ada9.zip
chore: Bump libthermite to `0.6.5` (#409)
And update code accordingly Co-authored-by: AnActualEmerald <emerald_actual@protonmail.com>
Diffstat (limited to 'src-tauri/src/northstar/install.rs')
-rw-r--r--src-tauri/src/northstar/install.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/src-tauri/src/northstar/install.rs b/src-tauri/src/northstar/install.rs
index bfaf9d3d..875458dd 100644
--- a/src-tauri/src/northstar/install.rs
+++ b/src-tauri/src/northstar/install.rs
@@ -48,9 +48,15 @@ async fn do_install(
log::info!("Download path: {download_path}");
let last_emit = RefCell::new(Instant::now()); // Keep track of the last time a signal was emitted
- let nfile = thermite::core::manage::download_file_with_progress(
+ let mut nfile = std::fs::File::options()
+ .read(true)
+ .write(true)
+ .truncate(true)
+ .create(true)
+ .open(download_path)?;
+ thermite::core::manage::download_with_progress(
+ &mut nfile,
&nmod.url,
- download_path,
|delta, current, total| {
if delta != 0 {
// Only emit a signal once every 100ms