From b1d334045da5f88a3e43bb31675fa16b2a696f67 Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Fri, 10 Oct 2025 22:42:43 -0300 Subject: [PATCH] =?UTF-8?q?feat:=20abrir=20sistema=20dentro=20do=20app=20e?= =?UTF-8?q?=20usar=20=C3=ADcones=20do=20raven?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/desktop/src-tauri/tauri.conf.json | 6 +++++- apps/desktop/src/main.tsx | 8 +------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.json index 358baf9..b04f710 100644 --- a/apps/desktop/src-tauri/tauri.conf.json +++ b/apps/desktop/src-tauri/tauri.conf.json @@ -16,7 +16,8 @@ "title": "Raven", "width": 1100, "height": 720, - "resizable": true + "resizable": true, + "icon": "icons/icon.png" } ], "security": { @@ -40,6 +41,9 @@ "nsis" ], "icon": [ + "icons/icon.ico", + "icons/icon.icns", + "icons/icon.png", "icons/Raven.png" ] } diff --git a/apps/desktop/src/main.tsx b/apps/desktop/src/main.tsx index 9c31c20..cde647d 100644 --- a/apps/desktop/src/main.tsx +++ b/apps/desktop/src/main.tsx @@ -221,13 +221,7 @@ function App() { async function openSystem() { if (!token || !config) return const url = `${resolvedAppUrl}/machines/handshake?token=${encodeURIComponent(token)}` - try { - // open in default browser; fallback to in-webview - const { openUrl } = await import("@tauri-apps/plugin-opener") - await openUrl(url) - } catch { - window.location.replace(url) - } + window.location.href = url } async function reprovision() {