[2.1.1] Now with Updates!
Added: - A working updater
This commit is contained in:
@@ -25,6 +25,7 @@ xmpd-cliargs.path="../xmpd-cliargs"
|
||||
xmpd-gui.path="../xmpd-gui"
|
||||
xmpd-manifest.path="../xmpd-manifest"
|
||||
xmpd-settings.path = "../xmpd-settings"
|
||||
xmpd-update.path = "../xmpd-update"
|
||||
clap.workspace=true
|
||||
camino.workspace = true
|
||||
anyhow.workspace = true
|
||||
|
||||
@@ -10,12 +10,16 @@ fn main() -> Result<()> {
|
||||
// NOTE: Parses on first load
|
||||
let cliargs = &xmpd_cliargs::CLIARGS;
|
||||
logger::init(&cliargs);
|
||||
log::debug!("Initialising settings");
|
||||
log::info!("Initialising settings");
|
||||
{
|
||||
xmpd_settings::Settings::get()?.load(Some(cliargs.settings_path().into_std_path_buf()))?;
|
||||
xmpd_settings::Settings::get()?.load_cli_args(cliargs);
|
||||
}
|
||||
log::debug!("Starting gui");
|
||||
|
||||
log::info!("Starting updater");
|
||||
xmpd_update::Update::new().update_xmpd_if_needed()?;
|
||||
|
||||
log::info!("Starting gui");
|
||||
xmpd_gui::start()?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user