feat(gui, tauri, ci): Auto updater (#105)

This commit is contained in:
binarybaron 2024-10-17 18:56:04 +06:00 committed by GitHub
parent 90584a211d
commit 6c433041b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 925 additions and 75 deletions

View file

@ -14,6 +14,7 @@ use swap::cli::{
command::{Bitcoin, Monero},
};
use tauri::{async_runtime::RwLock, Manager, RunEvent};
use tauri_plugin_dialog;
/// Trait to convert Result<T, E> to Result<T, String>
/// Tauri commands require the error type to be a string
@ -127,6 +128,8 @@ fn setup(app: &mut tauri::App) -> Result<(), Box<dyn std::error::Error>> {
#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_updater::Builder::new().build())
.plugin(tauri_plugin_dialog::init())
.plugin(tauri_plugin_process::init())
.plugin(tauri_plugin_store::Builder::new().build())
.plugin(tauri_plugin_clipboard_manager::init())