aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-26 18:38:56 +0200
committerGeckoEidechse <gecko.eidechse+git@pm.me>2022-08-26 18:38:56 +0200
commitde32f2e4c1d8cacfe3e314cff97ec62ddfa7e980 (patch)
tree87917f4284da56981c2832bdd79e1c26eed94635
parent7572f51890fc5081502d3f7c1b8b5a2751ab9b1d (diff)
downloadFlightCore-de32f2e4c1d8cacfe3e314cff97ec62ddfa7e980.tar.gz
FlightCore-de32f2e4c1d8cacfe3e314cff97ec62ddfa7e980.zip
Re-enable updater
-rw-r--r--src-tauri/Cargo.lock21
-rw-r--r--src-tauri/Cargo.toml2
-rw-r--r--src-tauri/tauri.conf.json4
3 files changed, 24 insertions, 3 deletions
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index b709518f..79cb0cb3 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -1477,6 +1477,12 @@ dependencies = [
]
[[package]]
+name = "minisign-verify"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "933dca44d65cdd53b355d0b73d380a2ff5da71f87f036053188bf1eab6a19881"
+
+[[package]]
name = "miniz_oxide"
version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -2754,6 +2760,7 @@ checksum = "e1a56a8b125069c2682bd31610109b4436c050c74447bee1078217a0325c1add"
dependencies = [
"anyhow",
"attohttpc",
+ "base64",
"cocoa",
"dirs-next",
"embed_plist",
@@ -2766,6 +2773,7 @@ dependencies = [
"heck 0.4.0",
"http",
"ignore",
+ "minisign-verify",
"notify-rust",
"objc",
"once_cell",
@@ -2791,12 +2799,14 @@ dependencies = [
"tauri-utils",
"tempfile",
"thiserror",
+ "time",
"tokio",
"url",
"uuid 1.1.2",
"webkit2gtk",
"webview2-com",
"windows 0.37.0",
+ "zip",
]
[[package]]
@@ -3725,3 +3735,14 @@ name = "xml-rs"
version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d2d7d3948613f75c98fd9328cfdcc45acc4d360655289d0a7d4ec931392200a3"
+
+[[package]]
+name = "zip"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bf225bcf73bb52cbb496e70475c7bd7a3f769df699c0020f6c7bd9a96dcf0b8d"
+dependencies = [
+ "byteorder",
+ "crc32fast",
+ "crossbeam-utils",
+]
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 6008c030..da9780a4 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -17,7 +17,7 @@ tauri-build = { version = "1.0.4", features = [] }
[dependencies]
serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
-tauri = { version = "1.0.5", features = ["api-all"] }
+tauri = { version = "1.0.5", features = ["api-all", "updater"] }
tokio = { version = "1", features = ["full"] }
[features]
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index 55c60239..57da488b 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -51,8 +51,8 @@
"csp": null
},
"updater": {
- "active": false,
- "pubkey": "",
+ "active": true,
+ "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IEVBNjM3NzJGRDgxMTU4NUUKUldSZVdCSFlMM2RqNmdhK3pIZjhEYWg2WnZGSFJqdkhLSHNOSjNhaW5VQVFLaHV3YWFDTnFKWWQK",
"endpoints": [
"https://gist.githubusercontent.com/GeckoEidechse/a607a04213af58a0f6f98613b4bee863/raw/FlightCore-currentrelease.json"
],