sindresorhus / get-windows

Get metadata about the active window and open windows (title, id, bounds, owner, etc)
MIT License
783 stars 161 forks source link

active-win is getting the incorrect path on Windows electron build #140

Closed whaleprophet closed 4 months ago

whaleprophet commented 2 years ago

I'm currently using active-win in an electron app using electron-builder. I already had the issue of Windows builds breaking because of a mismatched node version, but that was solved by adding postinstall: electron-builder install-app-deps instead of electron-rebuild.

But its intermittently importing active-win from app.asar/node_module/active-win instead of app.asar.unpacked/node_module/active-win (though in the app.asar.unpacked folder does have active-win)

Any ideas of using electron-builder instead of electron-rebuild?

sindresorhus commented 4 months ago

This would be a question for the Electron support forums. It's not specific to this package.