feat(desktop): add tray behavior and packaging config

This commit is contained in:
nav
2026-05-13 06:57:27 +00:00
parent 5843d3f8ca
commit 54f4b46755
5 changed files with 3397 additions and 10 deletions

View File

@@ -2,12 +2,61 @@
"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": "hangman@example.com"
},
"main": "main.js",
"scripts": {
"start": "electron .",
"start:dev": "FABRIC_DESKTOP_URL=http://localhost:5173 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": "^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"
],
"asar": true,
"linux": {
"target": [
"AppImage",
"deb",
"tar.gz"
],
"category": "Utility",
"maintainer": "Hangman <hangman@example.com>"
},
"mac": {
"target": [
"dmg",
"zip"
],
"category": "public.app-category.productivity"
},
"win": {
"target": [
"nsis",
"zip"
]
}
}
}