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.

Huge delta when just bumping version number

See original GitHub issue

I’m new to Electron and this installer.

When creating releases of the same codebase (just updating version in package.json) I get huge deltas. I don’t think thats normal…

Windows 32bit full nupkg: 40 MB Windows 32bit delta: 24 MB

Windows 64bit full nupkg: 49 MB Windows 64bit delta: 31 MB

Looking inside the delta .nupkg I see there are many .diff and .shasum files, however the main SmartFarmer.exe file has a .bsdiff and is also included as a whole (80 MB!).

image

The big .exe file obviously is the reason why the delta gets so big, but why is it included at all? What mistake could I have done?

I’ve seen https://github.com/electron-userland/electron-builder/issues/464 and https://github.com/electron-userland/electron-builder/issues/505 but I doubt they are related.

Running electron-winstaller with DEBUG=electron-windows-installer:main doesn’t show anything helpful IMHO - at least there are no errors / warnings. Dunno if there is some more debug information available somewhere (like a log file).

Using electron-winstaller 2.6.3

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:7
  • Comments:19 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
adabrucommented, Jan 21, 2020

Thanks rufusl!!

Got the same issue. I’m using electron-forge and while rufusl’s fix is not merged upstream my workaround for now is to specify a constant appVersion for the prepackaging. With electron-forge/electron-packager it is:

package.json
{
  "name": "my-app",
  "version": "0.0.1",
  ...
  "config": {
    "forge": {
      "packagerConfig": {
        "appVersion": "1.0.0"
        ...
      }
    ...
    }
  }
}

As Squirrel is currently undergoing a maintainer-change, the upstream fix may take some time (several months to 1-2 years?). A solution to this issue could be duplicating the diff functionality from Squirrel to electron-winstaller and recreating the diff file after squirrel finishes.

EDIT: Originally I did falsely claim that I specify the appVersion option for createWindowsInstaller and the next post by baconbrad refers to it.

1reaction
rufuslcommented, Nov 22, 2018

When packing a new version, only small changes are made to the Electron executable (probably just changing some metadata like the version). I noticed that an exception is often thrown in Squirrel’s delta generation on that file, resulting in the full file being included in the delta. The patch in Squirrel/Squirrel.Windows/pull/1421 fixes this error.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Versioning using bumpversion - William Hayes, PhD
Bumpversion (use bump2version instead — it installs a command called bumpversion) is a python-based tool that you can use to manage semantic versioning...
Read more >
Semantic Versioning(SemVer) with Conventional Commits
Changing version numbers should always have an incremental form. That's why it's called bumping. You cannot go from 1.1. 14 to 1.0.
Read more >
git - Continious Integration Bumping version without commit
A general solution is to use a build number generated by the CI server (usually exposed as an environment variable), don't just bump...
Read more >
Delta Air Lines offered passengers $10000 each to ... - Fortune
In the end, the hour-long flight departed just 20 minutes later than ... Delta, along with other airlines, has canceled huge numbers of ......
Read more >
Volume Delta - The Ultimate Order Flow Indicator
Forex has no centralized exchange so it's impossible to get accurate order data for volume delta. Your only option if you want to...
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