Skip to content

Commit db41f32

Browse files
Link to OpenFusion download page on update available
1 parent fe87d11 commit db41f32

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src-tauri/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ static VERSION_NUMBER_REGEX: LazyLock<Regex> =
3434
LazyLock::new(|| Regex::new(r"^v?\d+(?:\.\d)*$").unwrap());
3535
const UPDATE_CHECK_URL: &str =
3636
"https://api.github.com/repos/OpenFusionProject/OpenFusionLauncher/releases/latest";
37+
const DOWNLOAD_PAGE_URL: &str = "https://openfusion.dev/download/";
3738

3839
#[derive(Debug, Deserialize)]
3940
struct UpdateCheckResponse {
@@ -1216,7 +1217,7 @@ async fn check_for_update() -> CommandResult<Option<UpdateInfo>> {
12161217
}
12171218
Ok(Some(UpdateInfo {
12181219
version: resp.tag_name,
1219-
url: resp.html_url,
1220+
url: String::from(DOWNLOAD_PAGE_URL),
12201221
}))
12211222
};
12221223
internal.await.map_err(|e: Error| e.to_string())

0 commit comments

Comments
 (0)