Files
Fabric.Desktop/package.json
hzhang f641d42a8b fix(desktop): crash on launch + wrong icon (deb)
- 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>
2026-05-16 11:47:38 +01:00

71 lines
1.6 KiB
JSON

{
"name": "fabric-desktop",
"version": "0.1.0",
"private": true,
"description": "Electron desktop shell for Fabric frontend.",
"homepage": "https://github.com/hangman0414/Fabric",
"author": {
"name": "Hangman",
"email": "noreply@hangman-lab.top"
},
"main": "main.js",
"scripts": {
"start": "electron .",
"start:dev": "FABRIC_DESKTOP_URL=http://localhost:5173 electron .",
"pack": "electron-builder --dir",
"dist": "electron-builder",
"dist:linux": "electron-builder --linux AppImage deb tar.gz",
"dist:mac": "electron-builder --mac dmg zip",
"dist:win": "electron-builder --win nsis zip"
},
"devDependencies": {
"electron": "^37.2.1",
"electron-builder": "^24.13.3"
},
"build": {
"appId": "ai.hangman.fabric.desktop",
"productName": "Fabric",
"artifactName": "Fabric-Desktop-${version}-${os}-${arch}.${ext}",
"directories": {
"output": "dist"
},
"files": [
"main.js",
"preload.js",
"offline.html",
"package.json",
"assets/**"
],
"asar": true,
"icon": "build/icon.png",
"linux": {
"target": [
"AppImage",
"deb",
"tar.gz"
],
"category": "Utility",
"maintainer": "Hangman <noreply@hangman-lab.top>",
"executableName": "fabric-desktop",
"icon": "build/icons",
"desktop": {
"Name": "Fabric Desktop",
"StartupWMClass": "Fabric Desktop"
}
},
"mac": {
"target": [
"dmg",
"zip"
],
"category": "public.app-category.productivity"
},
"win": {
"target": [
"nsis",
"zip"
]
}
}
}