question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maker-Squirrel installer not installing Electron 10 apps correctly

See original GitHub issue

Preflight 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

  1. Create a minimal Electron Forge app (via npx create-electron-app my-app or otherwise).
  2. Verify the app is using >= v10.0.0 of Electron.
  3. run electron-forge make.
  4. 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:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:17 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
maleptcommented, Nov 24, 2020

This will be fixed when electron/windows-installer#367 is fixed.

4reactions
Nawvcommented, Sep 23, 2020

@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: Screenshot 2020-09-23 at 10 42 04

And here’s the squirrel installed version: Screenshot 2020-09-23 at 10 42 26

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 the swiftshader 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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maker-Squirrel installer not installing Electron 10 apps correctly
This issue is only present in version 10 of Electron; version 9 and below install and run correctly. Just to clarify, this is...
Read more >
Electron app installed but doesn't appear in start menu
The electron-builder installer (and electron-windows-installer) use Squirrel for handling the installation.
Read more >
Advanced Installation Instructions | Electron
To install prebuilt Electron binaries, use npm. The preferred method is to install Electron as a development dependency in your app:
Read more >
@electron-forge/maker-squirrel | Yarn - Package Manager
@electron-forge/maker-squirrel builds a number of files required to distribute apps using the Squirrel.Windows framework. It generates a {appName} Setup.exe ...
Read more >
A Comprehensive Guide to Building and Packaging an ...
Building and Packaging an Electron App wasn't as straight forward as I had hoped. This guide aims to help you navigate the complexities...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found