Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It comes with Chromium, that is basically a browser.

They have their own version of Chromium called Electron. But I recommend nwjs instead, witch is also built on Chromium and nodejs. And lets you make packages that only include your source code, so that you don't have to download the "browser" for every app.



Really? How is the app opened then without bundling Chromium? I built an app 4 months back and that was the only option.


You simply zip the files and rename to dot nw. Then the first time the user runs the file, the user needs to select "open with nw.exe".

ref: https://github.com/nwjs/nw.js/wiki/How-to-package-and-distri...

You probably want to include an "install" script that:

  * Download and install nwjs if it doesn't exist
  * Make the "package" open with nw.exe
  * optionally: Create a shortcut to the "package" on the desktop
  * optionally: Set a icon for the shortcut
Or instruct the user on how to do it. Many files work that way, that you have to select a program to open it with, so the user probably already knows how to do it.


It isn't really, but I guess it's so that in the future, if more apps are built with nwjs, it's possible to just download the 'runtime' and then each program sees if its installed, then downloads it if needed.


That's what we have package managers that handle dependencies for. Hopefully, that decade-old feature will be the future on windows too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: