aboutsummaryrefslogtreecommitdiff
path: root/src-tauri/Cargo.lock
diff options
context:
space:
mode:
authorGeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com>2023-03-19 21:19:38 +0100
committerGitHub <noreply@github.com>2023-03-19 20:19:38 +0000
commit6c0f600cc6dcb22b3990283aa5d3d7593da6bbb5 (patch)
tree45fb30229c437bc70a1abdceb020400a9ff8dbb8 /src-tauri/Cargo.lock
parent72070a9f6809f679ddd5874edfe454a8d8559092 (diff)
downloadFlightCore-6c0f600cc6dcb22b3990283aa5d3d7593da6bbb5.tar.gz
FlightCore-6c0f600cc6dcb22b3990283aa5d3d7593da6bbb5.zip
refactor: Fix PR downloads permission issue (#217)
* fix: Download PRs into Titanfall2 folder Avoids any folder write permission issues * fix: Download Mod PRs into Titanfall2 folder Avoids any folder write permission issues * build: Add libraries for zip extract * refactor: Download mods zip into memory and extract it from there directly into Titanfall2 dir * fix: Stop creating unneeded temp download folder * refactor: Download launcher zip into memory and extract it from there into a temp folder then only copy out necessary files and delete the rest * docs: Add comment * refactor: Remove unused functions * fix: Smoothly handle misformatted zip file Usually caused by the downloaded file not actually being a zip Catches the error and displays error message if it occurs. * feat: Exit early if download was unsuccessful * chore: Remove leftover commented out code * fix: Write mod files into correct subdirectory Was writing them into parent instead by accident which meant that Northstar wouldn't actually find it. * refactor: Define profile path once Instead of recreating the string everytime
Diffstat (limited to 'src-tauri/Cargo.lock')
-rw-r--r--src-tauri/Cargo.lock12
1 files changed, 12 insertions, 0 deletions
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index 7ecb04df..d1779cf0 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -109,6 +109,7 @@ dependencies = [
"tokio",
"ts-rs",
"zip",
+ "zip-extract",
]
[[package]]
@@ -5037,6 +5038,17 @@ dependencies = [
]
[[package]]
+name = "zip-extract"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb654964c003959ed64cbd0d7b329bcdcbd9690facd50c8617748d3622543972"
+dependencies = [
+ "log",
+ "thiserror",
+ "zip",
+]
+
+[[package]]
name = "zstd"
version = "0.11.2+zstd.1.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"