Skip to content

Commit

Permalink
add changelog link
Browse files Browse the repository at this point in the history
  • Loading branch information
mxve committed Oct 6, 2023
1 parent 12526d7 commit 6a8c11b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/self_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 6a8c11b

Please sign in to comment.