electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.46k stars 1.71k forks source link

Can't use custom version of Electron #8235

Closed Libadoxon closed 1 month ago

Libadoxon commented 1 month ago

I have set the electronDist key in the build section of my package.json but when trying to build it throws this error: ENOENT: no such file or directory, rename '/path/to/my-project/dist/linux-unpacked/electron' -> '/path/to/my-project/dist/linux-unpacked/my-project-name'

There is only a directory called resources inside of /path/to/my-project/dist/linux-unpacked

When trying to build the package without setting the electronDist key, /path/to/my-project/dist/linux-unpacked gets populated with the extracted contents the electron zip archive. So there seems to be a problem with the extracting

Libadoxon commented 1 month ago

Fixed, electronDist wants a path to the directory where the electron ZIP-Archive is, not a path to ZIP-Archive. Eg /home/foo/project/electron/electron-v29.3.3-linux-x64.zip <-- not valid /home/foo/project/electron/ <-- valid