how to ensure consistent file hashes for Portable Applications with electron-builder

34 views Asked by At

How can i ensure that the file hash value is the same every time electron-builder build a portable application?

The premise is not to modify any code or resources, build it straight away twice directly.

my test porject is based on electron-vite framework:

npm create @quick-start/electron electron-builder-hash-test --template vue

enter image description here

I added a configuration to Electron-Builder.yml file, the rest is all default:

win:
  target:
    - portable

I build it twice in a row, the result is different:

enter image description here enter image description here

how does this work?

Is there any way to achieve that the build result files are the same without any changes?

0

There are 0 answers