prepping for auto update

This commit is contained in:
Samuel Walker 2024-06-27 16:53:21 -06:00
parent 7e907d007c
commit f9ac5bf0e3
2 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,7 @@ flate2 = "1.0.30"
zip-extract = "0.1.3"
dirs = "5.0.1"
gethostname = "0.4.3"
self_update = "0.40.0"
[features]
# This feature is used for production builds or when a dev server is not specified, DO NOT REMOVE!!

View File

@ -4,6 +4,7 @@
use std::collections::{HashMap, HashSet};
use std::{io::Cursor, path::PathBuf};
use std::io::Seek;
use self_update::cargo_crate_version;
use serde_json::{Map, Result, Value};
use serde::Serialize;
use serde::Deserialize;
@ -29,6 +30,8 @@ fn greet(name: &str) -> String {
fn main() {
let status = self_update::backends::gitea::Update::configure().with_host("https://gitea.piwalker.net").repo_owner("piwalker").repo_name("FCLauncher").bin_name("FCLauncher").show_download_progress(true).current_version(cargo_crate_version!()).build().unwrap().update().unwrap();
println!("update status: `{}`", status.version());
modpack::get_modpacks();
//prism::install_prism();
tauri::Builder::default()