question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

electron-updater size

See original GitHub issue
  • Version: electron-updater 4.0.6
  • Target: macOS

electron-updater increases the bundle size of our main process script by 22 times to half a megabyte. Pasting the screenshots produced by webpack bundle analyzer plugin:

Without electron-updater: image

With electron-updater: image

electron-builder is the most popular tool for packaging and publishing apps and I love it. It is so easy to work with. The auto-updating feature is so easy to set up. However, seeing that our app will load slower makes me think about the decision to use the electron-updater plugin.

Is there a way to minimize the bundle size by using different libraries to do the same? I am pasting a few resources to show where the size problems are.

https://bundlephobia.com/result?p=electron-updater@4.0.12

https://bundlephobia.com/scan-results?packages=@types/semver@6.0.0,lazy-val@1.0.4,bluebird-lst@1.0.9,fs-extra-p@8.0.2,js-yaml@3.13.1,semver@6.1.1,source-map-support@0.5.12,builder-util-runtime@0.0.0-semantic-release,lodash.isequal@4.5.0,pako@1.0.10

image

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
develarcommented, Jul 1, 2019
Screenshot 2019-07-01 at 10 22 43

result for 4.1.0 — https://bundlephobia.com/result?p=electron-updater@4.1.0

2 less dependencies. Can be reduced further.

0reactions
sandeep1995commented, Mar 16, 2021

Please don’t close this issue as @develar said: “Can be reduced further.”.

Read more comments on GitHub >

github_iconTop Results From Across the Web

electron-updater
This module allows you to automatically update your application. You only need to install this module and write two lines of code! To...
Read more >
Auto Update
Used to verify downloaded size (save one HTTP request to get length). ... to reduce request count, block map size is specified in...
Read more >
Top 5 electron-updater Code Examples
Learn more about how to use electron-updater, based on electron-updater code examples ... var electronScreen = electron_1.screen; var size = electronScreen.
Read more >
electron-updater | Yarn - Package Manager
A complete solution to package and build a ready for distribution Electron, Proton Native app for macOS, Windows and Linux with “auto update”...
Read more >
electrondelta.com | True Delta updates for electron apps
@electron-delta/builder uses binary diffing instead of blockmaps of electron-builder. Thus the delta size is a lot smaller. Basically whatever you have changed ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found