99 строки
2.7 KiB
JSON
99 строки
2.7 KiB
JSON
{
|
|
"name": "deepspeech-electron",
|
|
"productName": "deepspeech-electron",
|
|
"version": "1.0.0",
|
|
"description": "My Electron application description",
|
|
"main": "public/electron.js",
|
|
"scripts": {
|
|
"start": "react-scripts start",
|
|
"build": "react-scripts build",
|
|
"test": "react-scripts test",
|
|
"eject": "react-scripts eject",
|
|
"dev": "concurrently \"BROWSER=none npm start\" \"wait-on http://localhost:3000 && electron --inspect=5858 .\"",
|
|
"dev-win": "concurrently \"npm start\" \"wait-on http://localhost:3000 && electron --inspect=5858 .\"",
|
|
"rebuild": "npm rebuild --runtime=electron --target=9.0.5 --disturl=https://atom.io/download/atom-shell --abi=75",
|
|
"pack": "npm run build && electron-builder --dir",
|
|
"dist": "npm run build && electron-builder",
|
|
"dist-win": "npm run build && electron-builder --x64",
|
|
"dev-test": "concurrently --kill-others --success first \"wait-on http://localhost:3000 && ./node_modules/.bin/electron public/electron.js DEEPSPEECH_TEST\" \"BROWSER=none npm start\""
|
|
},
|
|
"postinstall": "electron-builder install-app-deps",
|
|
"homepage": "./",
|
|
"build": {
|
|
"appId": "deepspeech-electron",
|
|
"productName": "deepspeech-electron",
|
|
"files": [
|
|
"build/**/*",
|
|
"node_modules/**/*",
|
|
"package.json"
|
|
],
|
|
"buildDependenciesFromSource": true,
|
|
"artifactName": "deepspeech-electron-${version}-${os}-${arch}.${ext}",
|
|
"dmg": {
|
|
"title": "${productName}"
|
|
},
|
|
"mac": {
|
|
"category": "public.app-category.utilities",
|
|
"target": [
|
|
{
|
|
"target": "dmg",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
},
|
|
{
|
|
"target": "zip",
|
|
"arch": [
|
|
"x64"
|
|
]
|
|
}
|
|
],
|
|
"identity": null
|
|
},
|
|
"win": {
|
|
"target": "nsis",
|
|
"artifactName": "deepspeech-electron-${version}-${os}-${arch}.${ext}"
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
{
|
|
"target": "AppImage"
|
|
}
|
|
],
|
|
"category": "Utility"
|
|
}
|
|
},
|
|
"keywords": [],
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"deepspeech": "^0.9.3",
|
|
"electron-is-dev": "^1.1.0",
|
|
"lodash": "^4.17.15",
|
|
"node-abi": "^2.18.0",
|
|
"react": "^16.12.0",
|
|
"react-dom": "^16.12.0",
|
|
"react-scripts": "^3.4.1",
|
|
"request": "^2.88.2",
|
|
"wav": "^1.0.2"
|
|
},
|
|
"devDependencies": {
|
|
"concurrently": "^5.0.0",
|
|
"electron": "9.0.5",
|
|
"electron-builder": "^22.7.0",
|
|
"electron-rebuild": "^1.11.0",
|
|
"wait-on": "^3.3.0"
|
|
},
|
|
"browserslist": {
|
|
"production": [
|
|
">0.2%",
|
|
"not dead",
|
|
"not op_mini all"
|
|
],
|
|
"development": [
|
|
"last 1 chrome version",
|
|
"last 1 firefox version",
|
|
"last 1 safari version"
|
|
]
|
|
}
|
|
}
|