electron-builder
electron-builder copied to clipboard
Cannot produce a working windows binary from template project with no changes
-
Which version of electron-builder are you using? electronuserland/builder:wine-mono (latest) hash: 04ebd993c08b
-
Which version of node are you using? v18.18.2 (from the docker image)
-
Which version of electron are you using? 30.0.7
-
Electron Type (current, beta, nightly): current
-
For which target are you building for? win32
Operating system
Windows 10 (Version 10.0.19045 Build 19045)
Last known working Electron Forge version
No response
Expected behavior
Electron binary to run
Actual behavior
Electron binary doesnt run and instead produces the error (when run from a command line):
[293384:0523/095224.285:FATAL:archive_win.cc(152)] Failed to find file integrity info for resources\app.asar [293384:0523/095224.285:ERROR:crashpad_client_win.cc(868)] not connected
Steps to reproduce
I use WSL for an Ubuntu 20.04 command line, but it shouldnt make a difference (since I build in a docker container):
- npm init electron-app@latest my-app -- --template=webpack-typescript
- cd my-app
- docker run -it -v ${HOME}:${HOME} -v /etc/passwd:/etc/passwd -u
id -u
:id -g
-v ${PWD}:/repo electronuserland/builder:wine-mono /bin/bash - cd /repo
- yarn install
- yarn run package --platform win32 (this succeeds without error)
To see error: 7. In windows, open file explorer to the 'out' directory 8. Double click electron-typescript.exe (nothing happens) 9. Open the same directory in powershell 10. ./electron-typescript.exe 11. Observe error
Additional information
Note: when I use a native environment (e.g. powershell + windows node) the same steps above do work. They just dont work while running the docker image (which is what I would like to use for CI). I have also tried running the docker image from powershell and it produces the same result.