ubuntu - Electron app won't install if name is different than product name -
i using electron-forge
create electron app , create distributables project.however encountered strange error. name
field in package.json
id status-client
, productname
field.
with these values when run electron-forge make executable , can install charm , find app in utilities
section in ubuntu.
however problem comes when change productname
field in package.json
file.the executable created able install if search app new name cannot find anywhere.
here new package.json
:
{
"name": "status-client", "productname": "foo", "version": "1.0.4", "description": "monitor when raspberry pi goes online , when offline desktop notifications", "main": "src/index.js", "scripts": { "start": "electron-forge start", "package": "electron-forge package", "make": "electron-forge make", "lint": "eslint src" }, "keywords": [], "author": "manos kounelakis <pkounelios@gmail.com>", "license": "mit", "config": { "forge": { "make_targets": { "win32": [ "squirrel" ], "darwin": [ "zip" ], "linux": [ "deb" ] }, "electronpackagerconfig": { "packagemanager": "npm" }, "electronwinstallerconfig": { "name": "status_client" }, "electroninstallerdebian": {}, "electroninstallerredhat": {}, "github_repository": { "owner": "", "name": "" }, "windowsstoreconfig": { "packagename": "", "name": "statusclient" } } }, "dependencies": { "electron-compile": "^6.4.1" }, "devdependencies": { "babel-plugin-transform-async-to-generator": "^6.24.1", "babel-preset-env": "^1.6.0", "babel-preset-react": "^6.24.1", "electron-prebuilt-compile": "1.7.5", "eslint": "^3.19.0", "eslint-config-airbnb": "^15.1.0", "eslint-plugin-import": "^2.7.0", "eslint-plugin-jsx-a11y": "^5.1.1", "eslint-plugin-react": "^7.2.0" } }
with above package.json executable , install if search programs foo
nothing.
here original package.json
:
{ "name": "status-client", "productname": "status-client", "version": "1.0.4", "description": "monitor when raspberry pi goes online , when offline desktop notifications", "main": "src/index.js", "scripts": { "start": "electron-forge start", "package": "electron-forge package", "make": "electron-forge make", "lint": "eslint src" }, "keywords": [], "author": "manos kounelakis <pkounelios@gmail.com>", "license": "mit", "config": { "forge": { "make_targets": { "win32": [ "squirrel" ], "darwin": [ "zip" ], "linux": [ "deb" ] }, "electronpackagerconfig": { "packagemanager": "npm" }, "electronwinstallerconfig": { "name": "status_client" }, "electroninstallerdebian": {}, "electroninstallerredhat": {}, "github_repository": { "owner": "", "name": "" }, "windowsstoreconfig": { "packagename": "", "name": "statusclient" } } }, "dependencies": { "electron-compile": "^6.4.1" }, "devdependencies": { "babel-plugin-transform-async-to-generator": "^6.24.1", "babel-preset-env": "^1.6.0", "babel-preset-react": "^6.24.1", "electron-prebuilt-compile": "1.7.5", "eslint": "^3.19.0", "eslint-config-airbnb": "^15.1.0", "eslint-plugin-import": "^2.7.0", "eslint-plugin-jsx-a11y": "^5.1.1", "eslint-plugin-react": "^7.2.0" } }
now last package.json executable .i can install , when search programs status-client
find it.
i don't errors while running electron-forge make
ideas why happening?
Comments
Post a Comment