diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-03-19 21:19:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-19 20:19:38 +0000 |
commit | 6c0f600cc6dcb22b3990283aa5d3d7593da6bbb5 (patch) | |
tree | 45fb30229c437bc70a1abdceb020400a9ff8dbb8 /src-tauri/Cargo.toml | |
parent | 72070a9f6809f679ddd5874edfe454a8d8559092 (diff) | |
download | FlightCore-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.toml')
-rw-r--r-- | src-tauri/Cargo.toml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index fafad444..a6142cea 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -54,6 +54,8 @@ chrono = "0.4.23" ts-rs = "6.1" # const formatting const_format = "0.2.30" +# Extracting zip files easily +zip-extract = "0.1.2" [features] # by default Tauri runs in production mode |