mirror of
https://github.com/margrop/wrong-notebook.git
synced 2026-12-02 05:30:16 +08:00
此前 mac 打包未设置签名身份,只有 Electron 主程序自带的链接器签名, 整个 .app 无法通过 codesign 校验,下载后常被提示「已损坏」。 现设置 mac.identity 为 "-" 做 ad-hoc 签名,并关闭 hardened runtime (不公证时无用,且 ad-hoc 签名下可能因库校验导致启动失败)。 同步更新 README、安装包与部署文档中的打开说明。
104 lines
2.3 KiB
JSON
104 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"
|
|
]
|
|
}
|
|
}
|
|
}
|