-
Notifications
You must be signed in to change notification settings - Fork 1k
Is it possible to use windows-shortcuts with pkg?? #814
Comments
You could try debugging using the --inspect flag Then pause your code where it's failing and step through You may want to look specifically at this line https://github.com/j201/windows-shortcuts/blob/master/lib/windows-shortcuts.js#L61 I'm not sure what's present in your process.env, you may need to manually set the corresponding environment variables manually if they're not being passed by pkg |
Thanks for the reply! However, I'm facing another issue. How can I track when all ws.create are totally done and then being able to delete the .exe? |
For future reference to anyone interested I've got an idea here to solve the issue: https://stackoverflow.com/questions/31372351/track-completion-of-javascript-callbacks-without-nesting-functions |
I’m using windows-shortcuts in my project to create a few windows desktop shortcuts. It works fine running on Node, but after pkg it won’t because I think it cannot resolve the external path or the variable %UserProfle%.
I’ve tried using path.resolve and join, with process.cwd() as base argument.
Any suggestions how could I achieve that?
The text was updated successfully, but these errors were encountered: