get windows to open the window after updating..?

This commit is contained in:
Danglewood
2025-10-20 16:58:13 -07:00
parent acc2026ea7
commit 1f67faec71
5 changed files with 8 additions and 10 deletions

2
desktop/Cargo.lock generated vendored
View File

@@ -5673,7 +5673,7 @@ dependencies = [
[[package]]
name = "openbb-platform"
version = "0.9.0"
version = "0.9.1"
dependencies = [
"cc",
"chrono",

View File

@@ -1,7 +1,7 @@
{
"name": "openbb-platform",
"private": true,
"version": "0.8.2",
"version": "0.9.1",
"type": "module",
"license": "AGPL-3.0",
"scripts": {

View File

@@ -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"

View File

@@ -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();
}
}
*/
}
});
}

View File

@@ -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",