Note: This PR is based on #66, so that should be merged first.
My go at implementing a better detection for the Electron version. Given the potentially multiple found versions in the sources we check, we go for the oldest one just in case as we cannot know which one is actually used.
This now checks (if available):
package.json
package-lock.json
yarn.lock
the actual installed packages
As the .load() function of the ASAR loader is now async, one of the tests is currently failing. I'll try to fix that tomorrow. Otherwise this should be pretty much good to go.
Let me know what you think!
Note: This PR is based on #66, so that should be merged first.
My go at implementing a better detection for the Electron version. Given the potentially multiple found versions in the sources we check, we go for the oldest one just in case as we cannot know which one is actually used.
This now checks (if available):
package.json
package-lock.json
yarn.lock
As the
.load()
function of the ASAR loader is now async, one of the tests is currently failing. I'll try to fix that tomorrow. Otherwise this should be pretty much good to go.Let me know what you think!