f641d42a8bee7bf9aa70d3f1dedf0b4e9a2629c7
- productName 'Fabric Desktop' put the app in /opt/Fabric Desktop/; the space broke Electron's zygote/chrome-sandbox execvp (failed to execvp: /opt/Fabric -> FATAL zygote_host, instant crash). productName -> 'Fabric' (/opt/Fabric, no space); linux.executableName=fabric-desktop, linux.desktop.Name keeps the 'Fabric Desktop' label. - Icon landed in hicolor/0x0/apps (theme ignores it -> generic gear). Ship a real build/icons/<NxN>.png set and point linux.icon there; deb now installs 16..1024 hicolor sizes. Verified in the rebuilt .deb: /opt/Fabric/fabric-desktop, hicolor 16x16..1024x1024, no zygote core dump on run. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Fabric.Desktop
Electron desktop shell for Fabric.Frontend.
功能(当前)
- BrowserWindow 基础配置(尺寸/最小尺寸/标题)
- Dev/Prod 加载策略(dev server / 本地 offline.html)
- 基础菜单与快捷键(刷新、开发者工具、退出)
- 安全基线:
contextIsolation+sandbox+ 禁止任意新窗口/导航 preload + IPC白名单:fabric:config:getfabric:config:setfabric:notify
Dev
npm install
npm run start:dev
start:dev expects Frontend dev server at http://localhost:5173.
Standalone
npm start
Build / Release
先安装依赖(包含 electron-builder):
npm install
仅打包目录(不生成安装包):
npm run pack
跨平台构建入口:
npm run dist
按平台构建:
npm run dist:linux
npm run dist:mac
npm run dist:win
构建产物输出到:
dist/
产物命名规范:
Fabric-Desktop-${version}-${os}-${arch}.${ext}
Description
Languages
JavaScript
94%
HTML
6%