fix linux desktop packaging paths (#1162)

Co-authored-by: xingzhi <chuzihao.czh@alibaba-inc.com>
This commit is contained in:
sir1st
2026-05-30 20:14:24 +08:00
committed by GitHub
co-authored by xingzhi
parent 46bd7d0420
commit dcbf601e35
15 changed files with 46 additions and 3 deletions
+5
View File
@@ -40,6 +40,11 @@ export function hermesBinExists(): boolean {
return existsSync(hermesBin())
}
export function desktopIcon(): string {
if (app.isPackaged) return resolve(process.resourcesPath, 'build', 'icon.png')
return resolve(app.getAppPath(), 'build', 'icon.png')
}
export function webUiHome(): string {
return process.env.HERMES_WEB_UI_HOME?.trim() || resolve(homedir(), '.hermes-web-ui')
}