mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
46365726b9
* refactor: use Electron instead of Tauri * feat: two level windows and self-managed vite project * feat(desktop): macOS hidden-inset chrome and floating chat title Apply hiddenInset titleBarStyle on darwin so the system titlebar is hidden but native traffic lights remain. Reusable web sidebars inject a new DesktopShellKey to reserve a 36px TopBar that holds the traffic-light inset (drag region + right border) without colliding with the bot list, and the sidebar stays pinned open in the Electron shell so window resize doesn't fight the layout. Overlay a centered "Title - BotName" header above the chat content with a bottom shadow gradient that obscures scrolling messages, and reserve top padding so the first message stays visible when content fits the viewport. Route the sidebar + action by path (/settings/bots) so the chat router's /settings/* interception forwards it to the settings window cleanly while remaining a normal navigation in web. * docs(desktop): add AGENTS.md for Electron shell Document the multi-window architecture, web reuse strategy, type-stubbing trick, macOS chrome, IPC surface, routing, icons, and packaging — captures the non-obvious bits that bit us during the Tauri → Electron refactor so future agents don't relearn them.
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
appId: ai.memoh.desktop
|
|
productName: Memoh
|
|
copyright: Copyright © 2026 Memoh
|
|
directories:
|
|
buildResources: build
|
|
output: dist
|
|
files:
|
|
- "!**/.vscode/*"
|
|
- "!src/*"
|
|
- "!electron.vite.config.{js,ts,mjs,cjs}"
|
|
- "!{.eslintrc.cjs,.eslintignore,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}"
|
|
- "!{.env,.env.*,.npmrc,pnpm-lock.yaml}"
|
|
- "!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}"
|
|
asarUnpack:
|
|
- resources/**
|
|
mac:
|
|
category: public.app-category.productivity
|
|
target:
|
|
- target: dmg
|
|
arch: [arm64, x64]
|
|
- target: zip
|
|
arch: [arm64, x64]
|
|
icon: build/icon.icns
|
|
artifactName: ${productName}-${version}-${arch}.${ext}
|
|
notarize: false
|
|
linux:
|
|
category: Utility
|
|
target:
|
|
- target: AppImage
|
|
arch: [x64]
|
|
- target: deb
|
|
arch: [x64]
|
|
- target: rpm
|
|
arch: [x64]
|
|
maintainer: Memoh
|
|
icon: build/icon.png
|
|
artifactName: ${productName}-${version}-${arch}.${ext}
|
|
win:
|
|
target:
|
|
- target: nsis
|
|
arch: [x64]
|
|
icon: build/icon.ico
|
|
artifactName: ${productName}-${version}-${arch}-setup.${ext}
|
|
nsis:
|
|
oneClick: false
|
|
perMachine: false
|
|
allowToChangeInstallationDirectory: true
|
|
npmRebuild: false
|