feat: abrir sistema dentro do app e usar ícones do raven

This commit is contained in:
Esdras Renan 2025-10-10 22:42:43 -03:00
parent ee6e32ca79
commit b1d334045d
2 changed files with 6 additions and 8 deletions

View file

@ -16,7 +16,8 @@
"title": "Raven", "title": "Raven",
"width": 1100, "width": 1100,
"height": 720, "height": 720,
"resizable": true "resizable": true,
"icon": "icons/icon.png"
} }
], ],
"security": { "security": {
@ -40,6 +41,9 @@
"nsis" "nsis"
], ],
"icon": [ "icon": [
"icons/icon.ico",
"icons/icon.icns",
"icons/icon.png",
"icons/Raven.png" "icons/Raven.png"
] ]
} }

View file

@ -221,13 +221,7 @@ function App() {
async function openSystem() { async function openSystem() {
if (!token || !config) return if (!token || !config) return
const url = `${resolvedAppUrl}/machines/handshake?token=${encodeURIComponent(token)}` const url = `${resolvedAppUrl}/machines/handshake?token=${encodeURIComponent(token)}`
try { window.location.href = url
// open in default browser; fallback to in-webview
const { openUrl } = await import("@tauri-apps/plugin-opener")
await openUrl(url)
} catch {
window.location.replace(url)
}
} }
async function reprovision() { async function reprovision() {