Files
wrong-notebook/packaging/desktop/package.json
margrop 4aa5386f96 fix: 补齐 Linux deb 依赖并说明 AppImage 沙箱限制
- packaging/desktop/package.json 的 deb.depends 增加 libgbm1 与 xdg-utils,避免 Electron 运行库缺失
- INSTALL_PACKAGES 说明 .deb 自动补齐运行依赖,并补充 Ubuntu 24.04+ AppImage 的 AppArmor 非特权用户命名空间限制与解法
Refs: https://github.com/margrop/wrong-notebook/issues/138
2026-12-04 23:20:15 +08:00

106 lines
2.3 KiB
JSON

{
"name": "wrong-notebook-desktop",
"productName": "WrongNotebook",
"version": "0.0.0",
"description": "错题本桌面版:内置服务端,开箱即用",
"main": "main.js",
"author": {
"name": "margrop",
"email": "margrop@users.noreply.github.com"
},
"license": "MIT",
"homepage": "https://github.com/margrop/wrong-notebook",
"private": true,
"type": "commonjs",
"devDependencies": {
"electron": "45.0.0",
"electron-builder": "26.18.0"
},
"build": {
"appId": "io.github.margrop.wrongnotebook",
"productName": "WrongNotebook",
"directories": {
"output": "release",
"buildResources": "."
},
"asar": false,
"files": [
"main.js",
"package.json"
],
"extraResources": [
{
"from": "server",
"to": "server",
"filter": [
"**/*"
]
},
{
"from": "server/node_modules",
"to": "server/node_modules",
"filter": [
"**/*"
]
}
],
"icon": "icon.png",
"win": {
"target": [
{
"target": "nsis",
"arch": [
"x64"
]
},
{
"target": "portable",
"arch": [
"x64"
]
}
]
},
"nsis": {
"oneClick": false,
"allowToChangeInstallationDirectory": true,
"shortcutName": "小马错题本",
"artifactName": "WrongNotebook-Win-Setup-${version}-${arch}.${ext}"
},
"portable": {
"artifactName": "WrongNotebook-Win-Portable-${version}-${arch}.${ext}"
},
"mac": {
"category": "public.app-category.education",
"identity": "-",
"hardenedRuntime": false,
"target": [
"dmg",
"zip"
],
"artifactName": "WrongNotebook-Mac-${version}-${arch}.${ext}"
},
"linux": {
"category": "Education",
"executableName": "wrong-notebook",
"synopsis": "小马错题本",
"target": [
"AppImage",
"deb"
],
"artifactName": "WrongNotebook-Linux-${version}-${arch}.${ext}",
"maintainer": "margrop <margrop@users.noreply.github.com>"
},
"deb": {
"depends": [
"libnss3",
"libgtk-3-0",
"libxss1",
"libasound2 | libasound2t64",
"libgbm1",
"xdg-utils"
]
}
}
}