Maker-Squirrel installer not installing Electron 10 apps correctly
See original GitHub issuePreflight Checklist
- I have read the contribution documentation for this project.
- I agree to follow the code of conduct that this project follows, as appropriate.
- I have searched the issue tracker for a bug that matches the one I want to file, without success.
Issue Details
- Electron Forge Version:
- 6.0.0-beta.53
- Electron Version:
- 10.0.0
- Operating System:
- Windows (All versions)
- Last Known Working Electron Forge version::
- N/A
Expected Behavior
Installing a basic Electron app on Windows (via the squirrel.windows Setup.exe
produced by electron-forge make
) should allow the app to run correctly.
Actual Behavior
The renderer process of the installed app appears to crash/hang, resulting in a blank window.
To Reproduce
- Create a minimal Electron Forge app (via
npx create-electron-app my-app
or otherwise). - Verify the app is using >= v10.0.0 of Electron.
- run
electron-forge make
. - Install the app.
Additional Information
I believe I’ve tracked this down to the installer not copying libEGL.dll
and/or libGLESv2.dll
(located in the swiftshader
folder of the packaged app) into the app-x.x.x
folder for the app in AppData
. If I manually copy the swiftshader
folder across, the app works again.
This issue is only present in version 10 of Electron; version 9 and below install and run correctly.
Just to clarify, this is only an issue with the installed version of the app (seemingly due to the missing folder described above); running electron-forge start
or running the app from the output of electron-packager
works fine.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:17 (5 by maintainers)
Top GitHub Comments
This will be fixed when electron/windows-installer#367 is fixed.
@malept After some further testing, this problem is consistently only occurring on virtual machines (and it’s manifested on every VM we’ve tried it on so far). I don’t know if you’ve tried this on a VM, or if you could easily get your hands on one? I’m using a Windows 10 dev environment through Virtual Box (on a Mac laptop).
In terms of the differences in the file/folder hierarchy between the zipped version and the squirrel version, the only important difference I can sport is the
swiftshader
folder - here’s the zipped version:And here’s the squirrel installed version:
As I said above, if I copy the
swiftshader
folder across to the squirrel installed folder, the installed app works fine. Similarly, if I delete theswiftshader
folder from the zipped version, the zipped app stops working (i.e. blank screen).I’ve also checked, and there’s no difference (that I can spot) in the file/folder hierarchy of the squirrel installed app between machines on which the app works, and machines on which it doesn’t.