Skip to content

Commit 1e98b93

Browse files
Download all files
1 parent 88324b0 commit 1e98b93

79,685 files changed

Lines changed: 33247846 additions & 12 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Cache.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"Entries": {
3+
"x86_64-unknown-linux-gnu/NODE/20": "v20.19.3",
4+
"aarch64-unknown-linux-gnu/NODE/23": "v23.11.1",
5+
"x86_64-apple-darwin/NODE/18": "v18.20.8",
6+
"x86_64-unknown-linux-gnu/NODE/24": "v24.3.0",
7+
"x86_64-unknown-linux-gnu/NODE/21": "v21.7.3",
8+
"x86_64-apple-darwin/NODE/23": "v23.11.1",
9+
"x86_64-apple-darwin/NODE/17": "v17.9.1",
10+
"x86_64-unknown-linux-gnu/NODE/22": "v22.17.0",
11+
"aarch64-apple-darwin/NODE/24": "v24.3.0",
12+
"aarch64-apple-darwin/NODE/16": "v16.20.2",
13+
"x86_64-pc-windows-msvc/NODE/23": "v23.11.1",
14+
"aarch64-unknown-linux-gnu/NODE/21": "v21.7.3",
15+
"aarch64-apple-darwin/NODE/22": "v22.17.0",
16+
"x86_64-pc-windows-msvc/NODE/17": "v17.9.1",
17+
"aarch64-unknown-linux-gnu/NODE/18": "v18.20.8",
18+
"aarch64-apple-darwin/NODE/21": "v21.7.3",
19+
"x86_64-pc-windows-msvc/NODE/21": "v21.7.3",
20+
"x86_64-pc-windows-msvc/NODE/24": "v24.3.0",
21+
"aarch64-unknown-linux-gnu/NODE/24": "v24.3.0",
22+
"x86_64-pc-windows-msvc/NODE/16": "v16.20.2",
23+
"x86_64-unknown-linux-gnu/NODE/17": "v17.9.1",
24+
"x86_64-pc-windows-msvc/NODE/18": "v18.20.8",
25+
"aarch64-apple-darwin/NODE/20": "v20.19.3",
26+
"x86_64-apple-darwin/NODE/24": "v24.3.0",
27+
"x86_64-unknown-linux-gnu/NODE/19": "v19.9.0",
28+
"x86_64-unknown-linux-gnu/NODE/23": "v23.11.1",
29+
"x86_64-apple-darwin/NODE/20": "v20.19.3",
30+
"aarch64-apple-darwin/NODE/23": "v23.11.1",
31+
"x86_64-unknown-linux-gnu/NODE/18": "v18.20.8",
32+
"aarch64-apple-darwin/NODE/18": "v18.20.8",
33+
"x86_64-unknown-linux-gnu/NODE/16": "v16.20.2",
34+
"x86_64-apple-darwin/NODE/21": "v21.7.3",
35+
"x86_64-pc-windows-msvc/NODE/22": "v22.17.0",
36+
"x86_64-apple-darwin/NODE/22": "v22.17.0",
37+
"aarch64-unknown-linux-gnu/NODE/20": "v20.19.3",
38+
"x86_64-pc-windows-msvc/NODE/19": "v19.9.0",
39+
"x86_64-pc-windows-msvc/NODE/20": "v20.19.3",
40+
"aarch64-apple-darwin/NODE/19": "v19.9.0",
41+
"aarch64-unknown-linux-gnu/NODE/19": "v19.9.0",
42+
"aarch64-unknown-linux-gnu/NODE/16": "v16.20.2",
43+
"aarch64-unknown-linux-gnu/NODE/22": "v22.17.0",
44+
"x86_64-apple-darwin/NODE/19": "v19.9.0",
45+
"x86_64-apple-darwin/NODE/16": "v16.20.2",
46+
"aarch64-unknown-linux-gnu/NODE/17": "v17.9.1",
47+
"aarch64-apple-darwin/NODE/17": "v17.9.1"
48+
}
49+
}

Source/Download.rs

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,15 @@
3232
#[derive(Clone, Debug)]
3333
struct PlatformTarget {
3434
/// The identifier used in the download URL (e.g., "win-x64",
35+
///
3536
/// "linux-arm64").
3637
DownloadIdentifier:String,
3738

3839
/// The file extension of the archive (e.g., "zip", "tar.gz").
3940
ArchiveExtension:String,
4041

4142
/// The official Tauri target triple for this platform (e.g.,
43+
///
4244
/// "x86_64-pc-windows-msvc").
4345
TauriTargetTriple:String,
4446
}
@@ -466,19 +468,16 @@ async fn ProcessDownloadTask(Task:DownloadTask, Client:Client, Cache:Arc<Mutex<D
466468
fs::remove_dir_all(&Task.DestinationDirectory)?;
467469
}
468470

469-
info!(" Installing to: {:?}", Task.DestinationDirectory);
470-
471-
fs::create_dir_all(&Task.DestinationDirectory)?;
472-
473-
let mut Options = FsExtraCopyOptions::new();
474-
475-
Options.content_only = true;
471+
// Ensure the parent of the final destination exists.
472+
if let Some(Parent) = Task.DestinationDirectory.parent() {
473+
fs::create_dir_all(Parent)?;
474+
}
476475

477-
Options.overwrite = true;
476+
info!(" Installing to: {:?}", Task.DestinationDirectory);
478477

479-
fs_extra::dir::copy(&ExtractedPath, &Task.DestinationDirectory, &Options).with_context(|| {
478+
fs::rename(&ExtractedPath, &Task.DestinationDirectory).with_context(|| {
480479
format!(
481-
"Failed to copy contents from {:?} to {:?}",
480+
"Failed to rename/move extracted directory from {:?} to {:?}",
482481
ExtractedPath, Task.DestinationDirectory
483482
)
484483
})?;
@@ -623,7 +622,7 @@ pub async fn Fn() -> Result<()> {
623622
MajorVersion:MajorVersion.clone(),
624623
FullVersion,
625624
DownloadURL,
626-
TempParentDirectory:TempDownloadsDirectory.clone(), // Pass temp dir to task
625+
TempParentDirectory:TempDownloadsDirectory.clone(),
627626
DestinationDirectory,
628627
ArchiveType:if ArchiveExtension == "zip" { ArchiveType::Zip } else { ArchiveType::TarGz },
629628
ExtractedFolderName,
@@ -719,7 +718,6 @@ use std::{
719718

720719
use anyhow::{Context, Result, anyhow};
721720
use colored::*;
722-
use fs_extra::dir::CopyOptions as FsExtraCopyOptions;
723721
use futures::stream::{self, StreamExt};
724722
use log::{LevelFilter, error, info, warn};
725723
use reqwest::Client;

Target/debug/Download.exe

-65.5 KB
Binary file not shown.

Target/debug/SideCar.exe

-65.5 KB
Binary file not shown.

Target/release/Download.exe

-18.5 KB
Binary file not shown.

Target/release/SideCar.exe

-18 KB
Binary file not shown.

aarch64-apple-darwin/NODE/16/CHANGELOG.md

Lines changed: 4565 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)