Skip to content

Commit 75e7388

Browse files
committed
Auto updater
1 parent 71cfc63 commit 75e7388

File tree

15 files changed

+838
-126
lines changed

15 files changed

+838
-126
lines changed

Cargo.lock

Lines changed: 169 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ rayon = "1.7.0"
6565
regex = "1.9.5"
6666
ringbuffer = "0.14.2"
6767
ron = "0.8.1"
68-
reqwest = { version = "0.11.24", features = ["blocking", "json"] }
68+
reqwest = { version = "0.11.24", features = ["json"] }
6969
semver = "1.0.21"
7070
serde = { version = "1.0.188", features = ["derive"] }
7171
serde_json = "1.0.113"
@@ -86,6 +86,7 @@ discord-rpc-client = { version = "0.4.0", optional = true }
8686
fs-err = "2.11.0"
8787
num = "0.4.1"
8888
rustc_version = "0.4.0"
89+
zip-extract = "0.1.3"
8990

9091
[features]
9192
default = ["discord_rpc"]

src/config.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@ use egui::epaint::ahash::HashMap;
22
use lazy_static::lazy_static;
33
use serde::{Deserialize, Serialize};
44

5-
use crate::util::{exe_relative_path, RwLock};
5+
use crate::{
6+
updater::UpdateChannel,
7+
util::{exe_relative_path, RwLock},
8+
};
69

710
lazy_static! {
811
pub static ref CONFIGURATION: RwLock<Config> = RwLock::new(Config::default());
@@ -45,6 +48,8 @@ macro_rules! config {
4548
pub struct Config {
4649
pub window: WindowConfig,
4750
pub resources: ResourceConfig,
51+
52+
pub update_channel: Option<UpdateChannel>,
4853
}
4954

5055
#[derive(Serialize, Deserialize)]

0 commit comments

Comments
 (0)