fix desktop preload build and rename app (#1150)

* fix desktop preload fetch typing

* rename desktop app to Hermes Studio

* rename desktop package to Hermes Studio

* update Hermes Studio desktop icons

* configure desktop signing and app id

* force desktop api calls to local server

* isolate desktop agent bridge ports

* bundle MCP support in desktop Python

* change desktop default port to 8748

* restore webui production port copy
This commit is contained in:
ekko
2026-05-30 15:59:52 +08:00
committed by GitHub
parent cbae8e8c3f
commit f7991572af
14 changed files with 89 additions and 25 deletions
+6
View File
@@ -2,8 +2,14 @@ import router from '@/router'
const DEFAULT_BASE_URL = ''
function isDesktopShell(): boolean {
return typeof window !== 'undefined' &&
(window as typeof window & { hermesDesktop?: { isDesktop?: boolean } }).hermesDesktop?.isDesktop === true
}
function getBaseUrl(): string {
if (import.meta.env.VITE_HERMES_PREVIEW === '1') return DEFAULT_BASE_URL
if (isDesktopShell()) return DEFAULT_BASE_URL
return localStorage.getItem('hermes_server_url') || DEFAULT_BASE_URL
}