The question is how to make nw.js app as executable so that the end user can simply double click on the "app" file and run it, instead of writing
My issue is that the executable file doesn't run in Ubuntu (or Linux in general) but the same works fine in Windows and Mac OSX.
I tried a lot of methods:
- Using simple command approach --->
cat `which nw` app.nw > app && chmod +x app
I zip this app file with along with nw.pak and try to run it through terminal in Ubuntu and it works fine. But when I try to run it by double clicking, it doesn't run.
2. I used using Web2Executable and then tried to run that app in Ubuntu.
3. I used grunt-nw-builder and tried running that executable in Ubuntu.
The solution given on Internet is to create .desktop file and use
which I have tried. None of this has worked as yet.
My environment:
Ubuntu 16.04 x64
nw.js 0.16.1 x64 sdk
Anybody got any ideas? Please help.