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

MacOS Packed Electron App - not working #22

Open
chlebon opened this issue Jun 13, 2022 · 3 comments
Open

MacOS Packed Electron App - not working #22

chlebon opened this issue Jun 13, 2022 · 3 comments

Comments

@chlebon
Copy link

chlebon commented Jun 13, 2022

Hi,

I'm having issue with GlobalKeyboardListener on MacOS (namely Monterey) in packaged electron app.
Windows 10 + 11 - Works OK. In DEV version and packed version
MacOS - DEV version worked OK but packed version is not working.

I add lib as external, add right serverPath for mac but no progress.

mac: { serverPath: app.isPackaged ? path.join( __dirname, '../../../app.asar.unpacked/node_modules/node-global-key-listener/bin/MacKeyServer' ) : 'node_modules/node-global-key-listener/bin/MacKeyServer', },

@sancarn
Copy link
Contributor

sancarn commented Jun 14, 2022

If you need help testing I do have a mac, not 100% sure what could be going on otherwise i'm afraid.

@chlebon
Copy link
Author

chlebon commented Jun 14, 2022

Hi,
Thx for the help offer. I'm just stuck with this.
As I said - everything is working fine on windows. Even if I make publish version of mine Electron App.
BUT MacOS is working just in DEV version.

When I was testing MacOS version - I was getting prompt window where GlobalKeyboardListener wanted the password because script was trying to found the server file. THAT IS happening only when path to that file was wrong and the file was not found.
When I finally add the right path -a prompt window disappeared BUT it's not working :(.
So serverPath is right - we know that now. What next ?
Could it be issue that MacKeyServer is inside the dmg file ?

@mushan0x0
Copy link

This is a great library. Is there any solution other than this issue on mac?

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

3 participants