Electron-builder: Remove Block Map

Created on 11 May 2018  路  7Comments  路  Source: electron-userland/electron-builder


  • 19.56.2:

Not using electron updater

  • Building for: Windows

I am building the app, but i want the installer to be simply one exe not an Exe and blockmap. How do i get it to not make a blockmap?

question

Most helpful comment

Building the blockmap takes a long time and is useless. There should be a way to disable it.

All 7 comments

You don't need to bundle blockmap file. Simply ignore it. it will be later used by updater (this functionality is not yet enabled).

Building the blockmap takes a long time and is useless. There should be a way to disable it.

@develar, it seems you agree this blockmap generation is ridiculously slow and useless since you've added an option for yourself to disable it. Perhaps you could make this option available to everyone?

Any update on this?

Develar tells others to "Simply ignore it" however these useless files are bothering him too, so he's added undocumented options:

{
    "build": {
        "nsis": {
            "differentialPackage": false
        },
        "dmg": {
            "writeUpdateInfo": false
        }
    }
}

Basically "differentialPackage" removes it for Windows builds, and "writeUpdateInfo" for dmg builds. It's undocumented but so far it works.

Thank you for this! I've only tested it for dmg, but it works so far.

the blockmap generation also seems to hang forever at high cpu on apple silicon running node through rosetta

Was this page helpful?
0 / 5 - 0 ratings