There's is a way of getting just an exe/linux binary/app file from NeutralinoJS? - neutralinojs

I'm trying to make a simple application with neutralinoJS
I'm wondering how get a unique file:
.exe to windows
a binary, .deb, .rpm to linux
and a .app to macOS
Cause there is a file that runs the html/js but the source code is visible to edit
Files are visible

Neutralinojs produces portable cross platform apps. Therefore, your application files (css, js etc) and Neutralino framework files (settings.json etc) are visible from application bundle.
Whereas, they are having an idea to make a packager tool which will minify app source.
Hope it helps

Related

How do I package node.js app into single file (without bundling node.js itself)?

I'm looking for a way to deliver a node.js server-side application (not browser) as a single file that contains all my code and node_modules. Well, it can be a few files, but I'd like to avoid shipping 10,000+ files, that are usually in node_modules.
I've used solutions like pkg, but I don't need an executable that has node.js bundled. I'd rather ship node.js separately and only have a bundle with code. This would be especially useful as I need to ship a few applications and don't need each of them to contain a copy of node.js.
Appreciate any suggestions.

Is it possible to execute local .exe´s from angular application running in browser?

We are about to start a new project which should be like a desktop app but still run inside a browser for creating items in a system. After these items are created, an .EXE file on the LOCAL machine must be called to do some code generation. Is this possible if using Angular to develop the application or do we need third party libs for executing local .exe's?
No, this is not possible out of the box. Browsers make very sure that local executables cannot be started. You would have to look for other solutions.
One possible idea, depending on how much effort you want to invest, would be to compile the WebKit engine yourself, i.e., create a binary "wrapper" which runs the browser engine itself. Then you are free to extend it in whatever fashion you need, including adding the possibility to start local .exe's (or if those .exe's are your own applications, you could compile them right into your WebKit wrapper).

How to compile Node.JS desktop app?

to gain more experience coding and support good projects, I recently got into open source projects and Github. After looking for a project I would like to work on, I found Soundnode (https://github.com/Soundnode/soundnode-app). The project uses NW.js, Node.js and Angular.js.
The question is very fundamental: How do I run the NW.js desktop app from the given files?
I was able to compile the app once, using the bash command open -n -a nwjs --args "/Users/example/path/app". But how do I compile the changes? After changing the index.html file, which is the start for the application, I have to terminate the NW.js app and start it up again (otherwise nothing will happen) and then it opens again the same, unchanged, original app (I changed some html text to see if would load the changed index.html).
Could anyone give me a quick guide how to work with this? What I want to change and everything else I will try to figure out on my own. Just need somebody to give me a head start :)
Best Regards, bbrinx - eager to learn.
nwjs application works next ways:
direct load web files from FS or web
archive files to zip package.nw
Check nwjs manual and docs: http://docs.nwjs.io/en/latest/ and https://github.com/nwjs/nw.js/wiki
Easiest way to compile your app is to use Web2Exe. It can compile for Win, Mac, Linux.
You can use browser tools for developing/debugging your application. Set toolbar option in true in window section in package.json file to see browser elements in your app.

Is it possible to distribute a NWJS app as a single exe-file?

I exported a game out of Construct 2 using their NWJS exporter. I need to distribute this game to a client who is not very technically adept to put it nicely. I think he would be able to run an exe-file by double-clicking it, but for example extracting a zip-file is probably too much to ask.
Is it possible to somehow distribute the result as a single executable file?
Here's what the folder that Construct made contains:
locales (folder)
d3dcompiler_47.dll
debug.log
dxwebsetup.exe
icudtl.dat
libEGL.dll
libEGLSv2.dll
natives_blob.bin
node.dll
nw.dll
nw.exe
nw_100_percent.pak
nw_200_percent.pak
nw_elf.dll
package.nw
resources.pak
Yes, use enigma virtual box or something similar. It can pack app into standalone app.exe with all files, libraries, etc.
Checkout How to package and distribute your apps on the NW.js official wiki
There are a few methods there covering not only windows.

nwjs app javascript protection?

So nwjs is a neat little framework that enables node apps to run in desktop mode independent to platform. But the way I package my files is pretty raw.
I zip my node app directory into a .nw file, and I copy it to an existing nwjs app's content folder. Then this means that anyone with some knowledge of nwjs will be able to literally unzip the .nw file and dig through the app directory. WTF. Is there a way to protect my files in my nwjs app?
You can compile the javascript files with snapshot:
nwjc source.js binary.bin
then load the compiled js in your app like this
require('nw.gui').Window.get().evalNWBin(null, 'binary.bin');
for more info, check this out.

Resources