mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-22 09:45:40 +01:00
Clean up logging somewhat
This commit is contained in:
parent
066111951f
commit
1f6d1e8d52
@ -43,23 +43,23 @@ fn main() {
|
||||
|
||||
let app_name = config.general.name.clone();
|
||||
|
||||
println!("{} installer", app_name);
|
||||
|
||||
let current_exe = std::env::current_exe().unwrap();
|
||||
let current_path = current_exe.parent().unwrap();
|
||||
let metadata_file = current_path.join("metadata.json");
|
||||
println!("Attempting to open: {:?}", metadata_file);
|
||||
let framework = if metadata_file.exists() {
|
||||
println!("Using pre-existing metadata file: {:?}", metadata_file);
|
||||
InstallerFramework::new_with_db(config, current_path).unwrap()
|
||||
} else {
|
||||
println!("Starting fresh install");
|
||||
InstallerFramework::new(config)
|
||||
};
|
||||
|
||||
// blah 1
|
||||
|
||||
let server = WebServer::new(framework).unwrap();
|
||||
|
||||
// Startup HTTP server for handling the web view
|
||||
let http_address = format!("http://{}", server.get_addr());
|
||||
println!("{}", http_address);
|
||||
|
||||
// Init the web view
|
||||
let size = (1024, 550);
|
||||
|
@ -57,8 +57,6 @@ impl Task for ResolvePackageTask {
|
||||
Err(v) => return Err(format!("An error occured while compiling regex: {:?}", v)),
|
||||
};
|
||||
|
||||
println!("Releases: {:?}", results);
|
||||
|
||||
// Find the latest release in here
|
||||
let latest_result = results
|
||||
.into_iter()
|
||||
@ -80,7 +78,7 @@ impl Task for ResolvePackageTask {
|
||||
.next()
|
||||
.unwrap();
|
||||
|
||||
println!("{:?}", latest_file);
|
||||
println!("Selected file: {:?}", latest_file);
|
||||
|
||||
Ok(TaskParamType::File(latest_version, latest_file))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user