From 041f735a6e17dfdf0fb340bf4196b97c888133af Mon Sep 17 00:00:00 2001 From: Youwes09 Date: Sun, 22 Mar 2026 17:57:28 -0500 Subject: [PATCH] Fix: Windows Key Update --- src-tauri/src/lib.rs | 4 +++- src-tauri/tauri.conf.json | 8 +++----- src-tauri/tauri.windows.conf.json | 13 ++++++++++++- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs index 17eb8bf..886fb2d 100644 --- a/src-tauri/src/lib.rs +++ b/src-tauri/src/lib.rs @@ -3,7 +3,9 @@ use std::sync::Mutex; use std::io::Write; use sysinfo::Disks; use serde::Serialize; -use tauri::{Manager, WindowEvent, Emitter}; +use tauri::{Manager, WindowEvent}; +#[cfg(target_os = "windows")] +use tauri::Emitter; use tauri_plugin_shell::{ShellExt, process::CommandChild}; use walkdir::WalkDir; diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 4322fe4..251db1d 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -51,10 +51,8 @@ "open": true }, "updater": { - "pubkey": "RWR87cX5fjRNNiuoLs057dMl5bKeHjP3yrbTvGixYDTchASwR8Bsp1Wt", - "endpoints": [ - "https://github.com/Youwes09/Moku/releases/download/v__VERSION__/latest.json" - ] + "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDM2NEQzNDdFRjlDNUVEN0MKUldSODdjWDVmalJOTml1b0xzMDU3ZE1sNWJLZUhqUDN5cmJUdkdpeFlEVGNoQVN3UjhCc3AxV3QK", + "endpoints": [] } } -} +} \ No newline at end of file diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json index 172959c..1e5150b 100644 --- a/src-tauri/tauri.windows.conf.json +++ b/src-tauri/tauri.windows.conf.json @@ -5,5 +5,16 @@ "binaries/suwayomi-bundle/bin/Suwayomi-Server.jar", "binaries/suwayomi-bundle/jre/**/*" ] + }, + "plugins": { + "updater": { + "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDM2NEQzNDdFRjlDNUVEN0MKUldSODdjWDVmalJOTml1b0xzMDU3ZE1sNWJLZUhqUDN5cmJUdkdpeFlEVGNoQVN3UjhCc3AxV3QK", + "endpoints": [ + "https://github.com/Youwes09/Moku/releases/latest/download/latest.json" + ], + "windows": { + "installMode": "passive" + } + } } -} +} \ No newline at end of file