Is it possible with node-webkit to create a fully portable program?

0 like 0 dislike
12 views
Is it possible with node-webkit to create a completely portable program, which would consist of one executable file and stored its settings in the folder which is the program itself. The opportunity to work with the stick. It is also important that the program worked for a minimum of three operating systems: Linux, MacOs, Windows. Where you can read about it?? Google in this case has not helped.
by | 12 views

2 Answers

0 like 0 dislike
Without external binary wrapper is difficult. If you wrap everything in the package is still possible, as well as to define the directory from where you run the binary, here to write - you can already be a problem.
With Windows just all, but for example in Linux application can not even sneeze without authorization. Accordingly, to take and record anywhere will not work.
You can dig in the following areas:
1. Sandbox. In package.json you can specify the path where node-webkit will keep the localStorage, and temporary files, for example:
"chromium-args": "--data-path='./data-cash/'"
2. process.env - allows you to get a bunch of data about the environment of the application, including to find information about the tracks. This can be attributed to process.execPath
Likely to have, firstly, to determine the OS, and second, to check access rights to the directory.
by
0 like 0 dislike
would consist of one executable file

worked for a minimum of three operating systems: Linux, MacOs, Windows.
Impossible.

Why such a strange requirement in 1 executable file?
If you normally to the task approach, it can be done.
Knowledge advanced user enough, programming is not necessary.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,643 users