Skip to content

Commit

Permalink
Fix chrome exe path
Browse files Browse the repository at this point in the history
  • Loading branch information
Manvir Singh committed Feb 19, 2017
1 parent e020ec1 commit 483d816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ fn update(out_path: &str, remote: &str) {
fn main() {
const LAST_CHANGE_URL: &str = "https://www.googleapis.com/download/storage/v1/b/chromium-browser-snapshots/o/Win_x64%2FLAST_CHANGE?alt=media";
const OUT_PATH: &str = "mini_installer.exe";
const CHROME_EXE: &str = "C:\\Users\\Manvir\\AppData\\Local\\Chromium\\Application\\chrome.exe";
let chrome_exe = env!("LOCALAPPDATA").to_string() + "\\Chromium\\Application\\chrome.exe";

let remote_thread = thread::spawn(move|| {
get_remote_version(LAST_CHANGE_URL)
});

let local_thread = thread::spawn(move|| {
get_local_version(CHROME_EXE)
get_local_version(&chrome_exe)
});

let remote = remote_thread.join().unwrap();
Expand Down

0 comments on commit 483d816

Please sign in to comment.