diff options
author | GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> | 2023-05-15 21:50:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-15 21:50:40 +0200 |
commit | 225e7545e61b4df2c7404114ebba64246017b86e (patch) | |
tree | bcd775ceac4f19e06b480d2e75b7baa9b57a35b0 /src-tauri/src/github/pull_requests.rs | |
parent | 5edffe63d3b6f503ad29da08f281ea88682f5f90 (diff) | |
download | FlightCore-225e7545e61b4df2c7404114ebba64246017b86e.tar.gz FlightCore-225e7545e61b4df2c7404114ebba64246017b86e.zip |
feat: Button to install NorthstarLauncher from git main branch (#314)
* feat: WIP code to install launcher from git main
Works but needs some more cleanup still
* fix: Formatting
* fix: Address clippy errors
* refactor: Move `install_git_main` to own source
file
* fix: Remove unnecessary `pub`
* docs: Update comments
* refactor: Move API URL to constants
Diffstat (limited to 'src-tauri/src/github/pull_requests.rs')
-rw-r--r-- | src-tauri/src/github/pull_requests.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src-tauri/src/github/pull_requests.rs b/src-tauri/src/github/pull_requests.rs index e600e2e4..b30fd272 100644 --- a/src-tauri/src/github/pull_requests.rs +++ b/src-tauri/src/github/pull_requests.rs @@ -127,7 +127,7 @@ pub async fn check_github_api(url: &str) -> Result<serde_json::Value, Box<dyn st } /// Downloads a file from given URL into an array in memory -async fn download_zip_into_memory(download_url: String) -> Result<Vec<u8>, anyhow::Error> { +pub async fn download_zip_into_memory(download_url: String) -> Result<Vec<u8>, anyhow::Error> { let client = reqwest::Client::builder() .user_agent(APP_USER_AGENT) .build()?; |