electron

Configure electron-builder to run powershell script

不问归期 提交于 2021-02-08 01:27:11
问题 I have an installation file created by electron-builder and faced issue that can't find a way how to run powershell script after installation. The idea is to make some changes in windows registry and set permission for application folder. As far as I understand it should be configured in build section in package.json . In api I found that it is exist afterPack method, but I can't figure it out how to execute powershell file through it. Thank you. 回答1: First, create an afterPack.js file,

Configure electron-builder to run powershell script

梦想的初衷 提交于 2021-02-08 01:26:05
问题 I have an installation file created by electron-builder and faced issue that can't find a way how to run powershell script after installation. The idea is to make some changes in windows registry and set permission for application folder. As far as I understand it should be configured in build section in package.json . In api I found that it is exist afterPack method, but I can't figure it out how to execute powershell file through it. Thank you. 回答1: First, create an afterPack.js file,

Configure electron-builder to run powershell script

て烟熏妆下的殇ゞ 提交于 2021-02-08 01:26:04
问题 I have an installation file created by electron-builder and faced issue that can't find a way how to run powershell script after installation. The idea is to make some changes in windows registry and set permission for application folder. As far as I understand it should be configured in build section in package.json . In api I found that it is exist afterPack method, but I can't figure it out how to execute powershell file through it. Thank you. 回答1: First, create an afterPack.js file,

Configure electron-builder to run powershell script

北战南征 提交于 2021-02-08 01:24:41
问题 I have an installation file created by electron-builder and faced issue that can't find a way how to run powershell script after installation. The idea is to make some changes in windows registry and set permission for application folder. As far as I understand it should be configured in build section in package.json . In api I found that it is exist afterPack method, but I can't figure it out how to execute powershell file through it. Thank you. 回答1: First, create an afterPack.js file,

Configure electron-builder to run powershell script

眉间皱痕 提交于 2021-02-08 01:23:17
问题 I have an installation file created by electron-builder and faced issue that can't find a way how to run powershell script after installation. The idea is to make some changes in windows registry and set permission for application folder. As far as I understand it should be configured in build section in package.json . In api I found that it is exist afterPack method, but I can't figure it out how to execute powershell file through it. Thank you. 回答1: First, create an afterPack.js file,

How to run an electron app with arguments?

北战南征 提交于 2021-02-07 20:28:30
问题 My app is electron with a BrowserWindow loading a local page index.html. I call npm run start a script to run electron main.js , the app opens and the html loaded. Can I add an argument to the script that will load different html file into the BrowserWindow ? In the main.js file the code is : function createWindow () { // Create the browser window. mainWindow = new BrowserWindow({ webPreferences:{ webSecurity:false }, fullscreen : false });//, alwaysOnTop : true , kiosk : true }) mainWindow

Error: Cannot find module \node_modules\sqlite3\lib\binding\electron-v8.0-win32-x64\node_sqlite3.node'

拜拜、爱过 提交于 2021-02-07 09:38:52
问题 I have trouble with installing sqlite3 in electron 8.1 I got following errors Error: Cannot find module 'D:\TASK(2020.1.1~)\AMS\node_modules\sqlite3\lib\binding\electron-v8.1-win32-x64\node_sqlite3.node' Require stack: - D:\TASK(2020.1.1~)\AMS\node_modules\sqlite3\lib\sqlite3.js - D:\TASK(2020.1.1~)\AMS\main.js - D:\TASK(2020.1.1~)\AMS\node_modules\electron\dist\resources\default_app.asar\main.js - at Module._resolveFilename (internal/modules/cjs/loader.js:798:15) at Function../lib/common

Error: Cannot find module \node_modules\sqlite3\lib\binding\electron-v8.0-win32-x64\node_sqlite3.node'

怎甘沉沦 提交于 2021-02-07 09:38:03
问题 I have trouble with installing sqlite3 in electron 8.1 I got following errors Error: Cannot find module 'D:\TASK(2020.1.1~)\AMS\node_modules\sqlite3\lib\binding\electron-v8.1-win32-x64\node_sqlite3.node' Require stack: - D:\TASK(2020.1.1~)\AMS\node_modules\sqlite3\lib\sqlite3.js - D:\TASK(2020.1.1~)\AMS\main.js - D:\TASK(2020.1.1~)\AMS\node_modules\electron\dist\resources\default_app.asar\main.js - at Module._resolveFilename (internal/modules/cjs/loader.js:798:15) at Function../lib/common

Angular Electron, white screen after reload page

纵饮孤独 提交于 2021-02-07 09:19:11
问题 When I first run my application electron with angular 4, it works normally like this but once I reload the page all becomes white When I check the DOM, everything appears normal, but the screen is still white. like this What causes the problem, how do I fix it ? 回答1: I know this is pretty old... but this is the most direct question I could find. I was running thru the same issue; every change to my angular application required me to rebuild the entire electron app, and if I refreshed the

Angular Electron, white screen after reload page

南笙酒味 提交于 2021-02-07 09:15:33
问题 When I first run my application electron with angular 4, it works normally like this but once I reload the page all becomes white When I check the DOM, everything appears normal, but the screen is still white. like this What causes the problem, how do I fix it ? 回答1: I know this is pretty old... but this is the most direct question I could find. I was running thru the same issue; every change to my angular application required me to rebuild the entire electron app, and if I refreshed the