From 1f67faec71ba1886b51823e92f8ec78a77caba14 Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Mon, 20 Oct 2025 16:58:13 -0700 Subject: [PATCH] get windows to open the window after updating..? --- desktop/Cargo.lock | 2 +- desktop/package.json | 2 +- desktop/src-tauri/Cargo.toml | 2 +- desktop/src-tauri/src/main.rs | 10 ++++------ desktop/src-tauri/tauri.conf.json | 2 +- 5 files changed, 8 insertions(+), 10 deletions(-) diff --git a/desktop/Cargo.lock b/desktop/Cargo.lock index 026cbe04c21..99a7e4e3c06 100644 --- a/desktop/Cargo.lock +++ b/desktop/Cargo.lock @@ -5673,7 +5673,7 @@ dependencies = [ [[package]] name = "openbb-platform" -version = "0.9.0" +version = "0.9.1" dependencies = [ "cc", "chrono", diff --git a/desktop/package.json b/desktop/package.json index 2c4871bfba4..b3acd7fabd3 100644 --- a/desktop/package.json +++ b/desktop/package.json @@ -1,7 +1,7 @@ { "name": "openbb-platform", "private": true, - "version": "0.8.2", + "version": "0.9.1", "type": "module", "license": "AGPL-3.0", "scripts": { diff --git a/desktop/src-tauri/Cargo.toml b/desktop/src-tauri/Cargo.toml index cb91ff4fc9e..9e05f08c229 100644 --- a/desktop/src-tauri/Cargo.toml +++ b/desktop/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "openbb-platform" -version = "0.9.0" +version = "0.9.1" description = "Open Data Platform - by OpenBB - Desktop Application for managing virtual environments, application backend servers." authors = ["OpenBB, Inc."] license = "AGPL-3.0" diff --git a/desktop/src-tauri/src/main.rs b/desktop/src-tauri/src/main.rs index a625d2866bf..8b5af873cbf 100644 --- a/desktop/src-tauri/src/main.rs +++ b/desktop/src-tauri/src/main.rs @@ -168,7 +168,7 @@ async fn check_and_apply_update(app: AppHandle, always_prompt: bool) { let app_clone = app.clone(); app.dialog() .message(format!( - "A new version ({}) is available. Would you like to install it now? The update will close the application, and you will need to restart it.", + "A new version ({}) is available. Would you like to install it now? The update will close the application and restart.", update.version )) .title("Update Available") @@ -205,12 +205,9 @@ async fn check_and_apply_update(app: AppHandle, always_prompt: bool) { let _ = window.show(); } - #[cfg(target_os = "macos")] - { - app_clone_inner.request_restart(); - } + app_clone_inner.request_restart(); - #[cfg(not(target_os = "macos"))] + /* #[cfg(not(target_os = "macos"))] { use std::process::Command; @@ -223,6 +220,7 @@ async fn check_and_apply_update(app: AppHandle, always_prompt: bool) { app_clone_inner.restart(); } } + */ } }); } diff --git a/desktop/src-tauri/tauri.conf.json b/desktop/src-tauri/tauri.conf.json index bac574e0374..000f0c27e41 100644 --- a/desktop/src-tauri/tauri.conf.json +++ b/desktop/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Open Data Platform", - "version": "0.9.0", + "version": "0.9.1", "identifier": "co.openbb.platform", "build": { "frontendDist": "../dist",