electron-packager

Unable to build with electron-packager within electron-forge

喜你入骨 提交于 2021-02-08 20:38:22
问题 I have created a default project with electron-forge. When I try to package my project with the command electron-forge , the process exits with the following error. What am I doing wrong? I followed the instructions to a tee at electron-forge. $ electron-forge package ✔ Checking your system ✔ Preparing to Package Application for arch: x64 ✔ Compiling Application ✔ Preparing native dependencies ⠦ Packaging Application An unhandled rejection has occurred inside Forge: Command failed: npm prune

Unable to build with electron-packager within electron-forge

做~自己de王妃 提交于 2021-02-08 20:37:00
问题 I have created a default project with electron-forge. When I try to package my project with the command electron-forge , the process exits with the following error. What am I doing wrong? I followed the instructions to a tee at electron-forge. $ electron-forge package ✔ Checking your system ✔ Preparing to Package Application for arch: x64 ✔ Compiling Application ✔ Preparing native dependencies ⠦ Packaging Application An unhandled rejection has occurred inside Forge: Command failed: npm prune

Unable to build with electron-packager within electron-forge

爱⌒轻易说出口 提交于 2021-02-08 20:32:21
问题 I have created a default project with electron-forge. When I try to package my project with the command electron-forge , the process exits with the following error. What am I doing wrong? I followed the instructions to a tee at electron-forge. $ electron-forge package ✔ Checking your system ✔ Preparing to Package Application for arch: x64 ✔ Compiling Application ✔ Preparing native dependencies ⠦ Packaging Application An unhandled rejection has occurred inside Forge: Command failed: npm prune

Node module was compiled against diffferent node module 67

℡╲_俬逩灬. 提交于 2021-02-05 12:15:53
问题 I have a node project that was compiled under node module version 67, but now i am getting an error that it requires node module version 69. usb_bindings.node was compiled against a different Node.js version using NODE_MODULE_VERSION 67. This version of Node.js requires NODE_MODULE_VERSION 69. Please try re-compiling or re-installing the module (for instance, using `npm rebuild` or `npm install`).at process.module.(anonymous function) [as dlopen] Does anyone know how i could resolve this

Jar is not getting executed on MacOS when packaged with electron-packager

人走茶凉 提交于 2021-01-29 05:06:18
问题 Issue Details **Electron Packager Version:14.2.1 **Electron Version:8.2.5 **Operating System:MacOS 10.14.6 Mojave Last Known Working Electron Packager version::8.2.5 Expected Behavior I have created an electron app which will execute a jar file on a specific action in menu bar. I am using nodejs exec(jarfile.jar, callback()) command in the menu action. The jar should get executed and few contents should be written in the local filesystem. This works normally without packaging when I run npm

Env vars to change app name in project.json and set runtime vars?

帅比萌擦擦* 提交于 2021-01-28 07:50:30
问题 I need to generate two apps from the same codebase (e.g. "pro" and "lite" versions). There are a lot of questions here about this but none I found involve node or electron . I have only used env in development in very simple ways and after searching around, I haven't seen any mention of being able to use them in a deployed application. So two tasks: 1. Changing the name of the app So, using the package.json file with electron builder , I've tried to change the productName like this:

How to Change ElectronJS App default Icon?

…衆ロ難τιáo~ 提交于 2020-12-08 10:58:31
问题 I am new to electronjs. I want to convert an angular app to desktop. I could achieve it successfully but the problem is that the app icon is set to default electron and not the icon I provided as follows: win = new BrowserWindow({ width: 600, height: 670, icon: `${__dirname}/dist/assets/imgs/logo.png` }) I changed the icon after building the app using resource hacker but what I need is to change it at build time in the correct way. what am I missing> 回答1: In main.js, specify icon win = new

How to Change ElectronJS App default Icon?

懵懂的女人 提交于 2020-12-08 10:57:22
问题 I am new to electronjs. I want to convert an angular app to desktop. I could achieve it successfully but the problem is that the app icon is set to default electron and not the icon I provided as follows: win = new BrowserWindow({ width: 600, height: 670, icon: `${__dirname}/dist/assets/imgs/logo.png` }) I changed the icon after building the app using resource hacker but what I need is to change it at build time in the correct way. what am I missing> 回答1: In main.js, specify icon win = new

Regex pattern to ignore multiple folders

核能气质少年 提交于 2020-06-17 00:14:29
问题 How is the correct syntax to ignore more then one files and folders for electron-packager? With only one arg like: --ignore=docs/* it works fine. But I want to ignore more then one folder and files like: --ignore=docs/* + dev/* + someFile.js 回答1: Use the OR statement in the regular expression by using the | character in stead of the + character. --ignore="docs/.*|dev/.*|somefile\.js" 回答2: This variant works for me --ignore=\"(docs*|dev*|somefile\.js)\" 回答3: For anyone out there who's looking

electron package: reduce the package size

 ̄綄美尐妖づ 提交于 2020-01-22 09:23:05
问题 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, height: 600, icon: path.join(__dirname, 'icon.ico') }) win.maximize(); win.loadURL('https://stackoverflow.com/', {"extraHeaders" : "pragma: no-cache\n"}); win.on('closed', () => { win = null }) } app.on('ready', createWindow) app.on('browser-window-created',function(e,window) {