From 6a8c11b101b04ff74c2ce5776c45ae9fe6a743b6 Mon Sep 17 00:00:00 2001 From: mxve <68632137+mxve@users.noreply.github.com> Date: Fri, 6 Oct 2023 08:30:29 +0200 Subject: [PATCH] add changelog link --- src/self_update.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/self_update.rs b/src/self_update.rs index 2e4d5c1..c075919 100644 --- a/src/self_update.rs +++ b/src/self_update.rs @@ -29,6 +29,7 @@ pub fn run(_update_only: bool) { pub fn run(update_only: bool) { use std::{fs, path::PathBuf}; + use crate::misc; use crate::http; let working_dir = std::env::current_dir().unwrap(); @@ -82,9 +83,10 @@ pub fn run(update_only: bool) { self_replace::self_replace("alterware-launcher-update.exe").unwrap(); fs::remove_file(&file_path).unwrap(); - println!("Launcher updated. Please run it again."); + println!("Launcher updated. View the changelog at https://github.com/{}/{}/releases/latest", GH_OWNER, GH_REPO,); + println!("Please restart the launcher."); if !update_only { - std::io::stdin().read_line(&mut String::new()).unwrap(); + misc::stdin(); } std::process::exit(201); }