- assets/icon.png (512) -> BrowserWindow icon; build/icon.png (1024) for electron-builder (linux uses it directly, mac/win generated from it); package.json build.files += assets/**, build.icon set. - Tray: replace the placeholder base64 data-URL with the designed no-text tray icon (assets/tray.png 22 + tray@2x.png 44) via nativeImage.createFromPath. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
65 lines
1.5 KiB
JSON
65 lines
1.5 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 Desktop",
|
|
"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>"
|
|
},
|
|
"mac": {
|
|
"target": [
|
|
"dmg",
|
|
"zip"
|
|
],
|
|
"category": "public.app-category.productivity"
|
|
},
|
|
"win": {
|
|
"target": [
|
|
"nsis",
|
|
"zip"
|
|
]
|
|
}
|
|
}
|
|
}
|