electron-builder | A complete solution to package and build a ready for distribution Electron app with “auto update” su
kandi X-RAY | electron-builder Summary
kandi X-RAY | electron-builder Summary
A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of electron-builder
electron-builder Key Features
electron-builder Examples and Code Snippets
Community Discussions
Trending Discussions on electron-builder
QUESTION
I need help debugging Webpack's Compression Plugin.
SUMMARY OF PROBLEM
- Goal is to enable asset compression and reduce my app's bundle size. Using the Brotli algorithm as the default, and gzip as a fallback for unsupported browsers.
- I expected a content-encoding field within an asset's Response Headers. Instead, they're loaded without the field. I used the Chrome dev tools' network tab to confirm this. For context, see the following snippet:
- No errors show in my browser or IDE when running locally.
WHAT I TRIED
- Using different implementations for the compression plugin. See below list of approaches:
- (With Webpack Chain API)
ANSWER
Answered 2021-Sep-30 at 14:59It's not clear which server is serving up these assets. If it's Express, looking at the screenshot with the header X-Powered-By
, https://github.com/expressjs/compression/issues/71 shows that Brotli support hasn't been added to Express yet.
There might be a way to just specify the header for content-encoding
manually though.
QUESTION
I try to rebuild an electron app but I got this error regarding the epoll installation.
...ANSWER
Answered 2021-Nov-09 at 06:01I have a same problem too, but i am using a serialport not epoll.
So, I think the cause of this problem is electron modules not the native module.
QUESTION
I have build my electron app with help of https://medium.com/jspoint/packaging-and-distributing-electron-applications-using-electron-builder-311fc55178d9
it was was success (windows only). but after install published app, i am getting error as shown in screenshort
my scripts as below
package.json
...ANSWER
Answered 2022-Mar-03 at 12:19If sqlite3
is required during normal operation of your Electron application and not just during development then you will need to added sqlite3
as a dependency.
IE: Move "sqlite3": "^5.0.2"
from "devDependencies": { ... }
to "dependencies": { ... }
.
package.json
QUESTION
I've the following Dockerfile
...ANSWER
Answered 2022-Feb-11 at 10:23When you run bash interactively, your .bashrc
file will be run. When you run the command directly on the docker run
command, bash is run non-interactively and .bashrc isn't run.
NVM uses .bashrc to set things up, so it needs to run.
You can force bash into interactive mode with the -i
option. Then it'll work, but you'll get some warnings because it tries to do some terminal stuff that fails.
QUESTION
I use webpack 4 and electron-builder to bundle and build my Electron app. I noticed that native node modules inside the node_modules
directory of the app.asar
bundle still contain their C++ source files.
Is there a way to exclude certain file extensions from the build step?
...ANSWER
Answered 2021-Dec-25 at 05:32electron-builder can exclude files in the files section of your package.json
.
ExampleDefault pattern / is not added to your custom if some of your patterns is not ignore (i.e. not starts with !). package.json and /node_modules// (only production dependencies will be copied) is added to your custom in any case. All default ignores are added in any case — you don’t need to repeat it if you configure own patterns.
QUESTION
I'm currently carrying over a web project over to Electron, with the use of ReactJs, Redux, Express, MongoDB & Tailwind. I'm currently stuck on my authentication, where previously I made use of universal-cookies and history.push() for the usual redirecting and validation of cookies for the authentication process. Everything works perfectly fine, when I'm in the development server. I can see the cookies being added and redirection is working as expected. Now when I build the application, I try to login in, but nothing happens at all, but I can see the login request being successfully sent from the express server. I'm unsure if cookies are supported in Electron or either the use of history.push() (react-router-dom), but it's just odd seeing it work in the development server. Any help would be appreciated.
Login.js ...ANSWER
Answered 2021-Dec-12 at 23:34Well I've just realised, coding long periods of time can cause a person to make the simplest mistakes. Well I figured that in order for the electron app to run after the build, the client server is still needed... so the only think that had to be done was to make use write a simple script, to ensure the backend is executed as well as executing the front-end server in order for the actual build to work.
QUESTION
I'm working with an electron application that is built via electron-builder. When I generate the installer and begin installing with it, I see that the cancel button is disabled.
I've looked around at some electron builder documentation and done a few google searches but I seem to be coming up blank here.
edit: Discovered that I can use build/installer.nsh to actually modify UI elements, now I'm just wondering, how do I gain access to the button to enable / disable it, the examples I've seen use an .ini file to store options or something similar, but I'm getting recommendations to use nsDialogs.
Is nsDialogs something that's already readily accessible to me or do I need to import something into my installer.nsh file to use nsDialogs?
And by that token, how would I access the cancel button in nsDialogs?
Is there a configurable value that enables me to... enable that cancel button so users can choose to cancel during installation?
Thanks!
...ANSWER
Answered 2021-Nov-30 at 00:39NSIS installers do not support canceling the installation when you enter the InstFiles page (or any page after it). This is by design because of how the scripting language works.
If you don't mind hacks you can call the uninstaller when the user clicks cancel during the install phase:
QUESTION
I'm building a Nuxt-electron-prisma app and I kinda stuck here. when I use prisma normally as guided every thing is fine on dev but on build i get this error :
...ANSWER
Answered 2021-Sep-26 at 06:51Ok, I finally solved it!! first of all no need to change client generator output direction!
QUESTION
In some popular NodeJS libraries, e.g. ssh2 or node-pty, there is natively compiled code as part of the library. Creating the project with
...ANSWER
Answered 2021-Oct-29 at 21:51One solution I found is this:
- Add
yarn add -D native-ext-loader
(my version is 2.3.0 and electron is at 13.x) - Adjust
vue.config.js
and add thechainWebpackMainProcess
like this:
QUESTION
When I pack my Ionic project with @capacitor-community/electron
packager (using electron-builder), I get the following error:
ANSWER
Answered 2021-Oct-03 at 18:22So, apparently problem lies in default publish method. You need to change your electron-builder.config.json
file to the following form (without the comment):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install electron-builder
electron-webpack-quick-start is a recommended way to create a new Electron application. See Boilerplates. Please note that everything is packaged into an asar archive by default. For an app that will be shipped to production, you should sign your application. See Where to buy code signing certificates.
Specify the standard fields in the application package.json — name, description, version and author.
Specify the build configuration in the package.json as follows: "build": { "appId": "your.id", "mac": { "category": "your.app.category.type" } } See all options. Option files to indicate which files should be packed in the final application, including the entry file, maybe required.
Add icons.
Add the scripts key to the development package.json: "scripts": { "app:dir": "electron-builder --dir", "app:dist": "electron-builder" } Then you can run yarn app:dist (to package in a distributable format (e.g. dmg, windows installer, deb package)) or yarn app:dir (only generates the package directory without really packaging it. This is useful for testing purposes). To ensure your native dependencies are always matched electron version, simply add script "postinstall": "electron-builder install-app-deps" to your package.json.
If you have native addons of your own that are part of the application (not as a dependency), set nodeGypRebuild to true.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page