From 898ff56c7480fd15d03cde7ebe91b7c1d320afc6 Mon Sep 17 00:00:00 2001 From: hrzlgnm Date: Fri, 15 Mar 2024 14:32:31 +0100 Subject: [PATCH] chore: updater kung-foo (#54) --- src-tauri/Cargo.toml | 8 +++++++- src-tauri/tauri.conf.json | 15 +++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 78a738e7..681823ba 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -9,7 +9,13 @@ edition = "2021" tauri-build = { version = "1", features = [] } [dependencies] -tauri = { version = "1", features = ["shell-open", "updater", "dialog", "http-all"] } +tauri = { version = "1", features = [ + "dialog-ask", + "shell-open", + "updater", + "http-api", + "http-request", +] } serde = { version = "1", features = ["derive"] } serde_json = "1" mdns-sd = "0.10.4" diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index bbd27f19..94ff0f0e 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "mdns-browser", - "version": "0.1.7" + "version": "0.1.8" }, "tauri": { "allowlist": { @@ -22,9 +22,16 @@ "ask": true }, "http": { - "all": true, + "all": false, "request": true, - "scope": ["https://gist.githubusercontent.com/hrzlgnm/261433a660b7c056dc49b3ea6350689a/raw/516662d3954eb11d590ca2556a51c77d31b7df29/*"] + "scope": ["https://mdns-browser-updates.knulp.duckdns.org/*"] + }, + "window": { + "all": true + }, + "process": { + "exit": true, + "relaunch": true } }, "windows": [ @@ -40,7 +47,7 @@ "updater": { "active": true, "endpoints": [ - "https://gist.githubusercontent.com/hrzlgnm/261433a660b7c056dc49b3ea6350689a/raw/516662d3954eb11d590ca2556a51c77d31b7df29/updates.json" + "https://mdns-browser-updates.knulp.duckdns.org/updates.json" ], "dialog": true, "windows": {