Regardless what's been done to "builder-util-runtime" in development environment, the "npm run make" creates this directory in distribution package without content which is root cause of the problem. I tried manually install "builder-util-runtime". ![]() This directory is empty, which is the reason of the failure to load the app. On mac, checking the built app file by browsing (right click the app) "myapp/Show Package Content/Contents/Resources/app/node_modules/builder-util-runtime". "builder-util-runtime" is not installed manually. ![]() It is noticed, directory "builder-util-runtime/out" with content is installed in "node_modules" after eletron-updater is installed. "npm run make" build app also works! It proves this line causes the problem.Įlectron-updater is installed in above environment, which is installed after electron is installed: npm install electron-updater If removing this line, the app works from VSCode debugger. This line in main.js causes problem: const = require("electron-updater") But if building the app with "npm run make", it failed to load when double clicking the app due to this error: Uncaught Exception: Error: Cannot find module 'builder-util-runtime' Replace with the client ID from your app registration.I have an Electron application which uses "electron-updater" package. electron-quick-start Install dependencies npm install Run the app npm start. import from add these lines of code in the createWindow() function to initialize the ElectronAuthenticator, right after where mainWindow is declared. Distributing an Electron application for Linux that reached the widest. To initialize the ElectronProvider, add the following code to the src/renderer.ts file. The ElectronProvider is responsible for communicating with ElectronAuthenticator (in the main process) to request access tokens and receive information regarding signed in state that is required for the mgt components to work.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |