From 225e7545e61b4df2c7404114ebba64246017b86e Mon Sep 17 00:00:00 2001 From: GeckoEidechse <40122905+GeckoEidechse@users.noreply.github.com> Date: Mon, 15 May 2023 21:50:40 +0200 Subject: 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 --- src-tauri/src/github/mod.rs | 4 ++-- src-tauri/src/github/pull_requests.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src-tauri/src/github') diff --git a/src-tauri/src/github/mod.rs b/src-tauri/src/github/mod.rs index a4e390d3..0eab305b 100644 --- a/src-tauri/src/github/mod.rs +++ b/src-tauri/src/github/mod.rs @@ -31,8 +31,8 @@ pub struct TagWrapper { } #[derive(Debug, Deserialize)] -struct CommitInfo { - sha: String, +pub struct CommitInfo { + pub sha: String, commit: Commit, author: Option, } 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 Result, anyhow::Error> { +pub async fn download_zip_into_memory(download_url: String) -> Result, anyhow::Error> { let client = reqwest::Client::builder() .user_agent(APP_USER_AGENT) .build()?; -- cgit v1.2.3