I have this piece of code in the GUI part of my electron app which works perfectly alright when run from the terminal. I have packaged the app using 'electron-packager', then I started getting some issue.   Initially, the child process was te...
I made a simple Electron app:  main.js  const {app, BrowserWindow} = require('electron') const path = require('path') const url = require('url')  let win  function createWindow () {   win = new BrowserWindow({     width: 800,...
I've made a small Electron app which needs to load a preload js file.  When I start the app with electron ., it finds the file, but when the app is packaged, it doesn't.  The call is made here:  mainWindow = new BrowserWindow({    width: 800,...
npm init npm install electron-prebuilt --save-dev Create index.js npm install electron-packager --save-dev npm run build OR electron-packager . --all   I used these steps to create an electronjs app in past and had placed it's executable file in...
I have my packaged electron app using electron-packager and I want to run this app in any mac which doesn't have node installed. I was suggested that electron-packager bundles the node into my app, but when I try launching it on a mac I get the &...
I'm building a django electronjs app with PDF viewer using the following js script and it's working fine, but my concern is if I can disable or remove the download option from the PDF viewer. If yes, then how can I do that?   const { app } =...
What is the difference between the 2 electron-builder targets for Mac OS X: mac vs mas? I understand that mas is for distribution in the Mac App Store, and mac is for distribution outside of it.   Is the mas package able to auto-update when a new ver...
I have to use node-usb in electron.atom to use that I am trying to install node-gyp and I am facing a Issue.  gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack     at ChildProcess.onCpExit (C:\Users\Name\AppData\Roamin g\npm\node_mo...
I am creating an electron app in windows. Everything is working fine but when I run the setup, the desktop shortcut icon is electron's icon. This is my package.json file:  {   "name": "happiness",   "version": "1.0.0&#...
I'm working on an electron app and within the app, I execute shell commands using child_process.exec. One of the commands I run is npm run start; this works perfectly in a dev environment but when I build the application for production all npm co...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.