From 22bc55919efd6e2381bdc85f033e69f3b22025b1 Mon Sep 17 00:00:00 2001 From: Zane Helton Date: Thu, 7 Jul 2022 10:42:54 -0400 Subject: [PATCH] Test auto-updater --- src-tauri/Cargo.lock | 21 +++++++++++++++++++++ src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 7 ++++++- 3 files changed, 28 insertions(+), 2 deletions(-) diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 708d42c..d976bdc 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -1566,6 +1566,12 @@ dependencies = [ "winapi", ] +[[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.3" @@ -2850,6 +2856,7 @@ checksum = "421641ec549d34935530886151a42ce5ecbbb57beb30e5eec1b22f8e08e10ee9" dependencies = [ "anyhow", "attohttpc", + "base64", "cocoa", "dirs-next", "embed_plist", @@ -2862,6 +2869,7 @@ dependencies = [ "heck 0.4.0", "http", "ignore", + "minisign-verify", "notify-rust", "objc", "once_cell", @@ -2887,12 +2895,14 @@ dependencies = [ "tauri-utils", "tempfile", "thiserror", + "time 0.3.11", "tokio", "url", "uuid 1.1.2", "webkit2gtk", "webview2-com", "windows 0.37.0", + "zip", ] [[package]] @@ -3821,3 +3831,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 e3915f6..c94ae70 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -17,7 +17,7 @@ tauri-build = { version = "1.0.2", features = [] } [dependencies] serde_json = "1.0" serde = { version = "1.0", features = ["derive"] } -tauri = { version = "1.0.2", features = ["api-all"] } +tauri = { version = "1.0.2", features = ["api-all", "updater"] } midir = "0.7.0" [features] diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 6494003..c51c57b 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -51,7 +51,12 @@ "csp": null }, "updater": { - "active": false + "active": true, + "dialog": true, + "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDI5ODJFNDA4ODM4NkY4QjAKUldTdytJYURDT1NDS1FZV0lUS3doQURibmtaRGZqUzJxUmI3UzBXY0JxK1drcCtNLy92bUpEaVoK", + "endpoints": [ + "https://gist.githubusercontent.com/ZaneH/76ddde809ccd22c0ff77f2bd268c8293/raw/691f634e45be4d7cf1695a52903b2597bc1db41d/update-metadata.json" + ] }, "windows": [ {