Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

active-win not working after release :c #41

Closed
afloras opened this issue Mar 18, 2019 · 1 comment
Closed

active-win not working after release :c #41

afloras opened this issue Mar 18, 2019 · 1 comment

Comments

@afloras
Copy link

afloras commented Mar 18, 2019

Hello,

I'm pretty new at Electron and I created a software where everything works out when I use your library in debug mode.

  • npm install active-win
  • npm start

However, when I decide to create an exe file for Windows 64 bits, i can affirm that the following require line doesn't work (I debugged my code hard) :
const activeWin = require('active-win') // not working...

I don't catch any error though and it's just blocking the rest of my JavaScript code.

I used electron-packager to generate the production release :
"win64": "electron-packager . --overwrite "MyApp" --out=dist/win64 --platform=win32 --arch=x64 --icon=./assets/build/win/icon.ico --prune=true --asar=true --version-string.CompanyName=CE --version-string.FileDescription=CE --version-string.ProductName="MyApp""

Please, can you tell me if I need some dependencies to use this library in release mode ?

Thanks in advance.

@sindresorhus
Copy link
Owner

active-win has a dependency on packages that use native Node.js addons, which means you cannot easily cross-compile.

You should try the Electron support channels for additional questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants