nw-builder | js apps for Mac , Win and Linux | Dektop Application library
kandi X-RAY | nw-builder Summary
kandi X-RAY | nw-builder Summary
Build your NW.js apps for Mac, Win and Linux programmatically or via CLI
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nw-builder
nw-builder Key Features
nw-builder Examples and Code Snippets
Community Discussions
Trending Discussions on nw-builder
QUESTION
I need to build a new version of a javascript Node.js
app. I have the source code and the macOS and Windows installers for the previous version of the app.
How can I find what version of Node.js
was used to build the previous version of the app, so I can use the same Node.js
version to build my new version of the app?
I understand that version of Node.js
could have been different when building the macOS version and the Windows version. Ideally, I'd like to know what version of Node.js
was used for each platform, but if I can get at least one that would be sufficient for my needs.
UPDATE: package.json:
...ANSWER
Answered 2020-May-10 at 01:50Node.js doesn't get bundled with the source code of apps. The package.json
might have a section called "engines"
in which it will state what version you should be using.
If the root package.json
doesn't have the "engines"
section, then it may be posable that the some of the dependencies do say which version they require to be used. It would be kind of annoying going through each one to check, so a good way would be just to download a version of Node and run npm install
. If everything works, then you know that the Node version the app was created in is most likely older (its a bit tedious, I know).
Another thing you could look for (but might not be to helpful) would be to check when the files of the source code were created (especially the package.json
file), and find the Node version that was released around that time. This wont be as accurate as the first method but it will give you a working version of Node.
When it comes down to it though, its probably always best to use the most up to date version (or the most recent LTS version) as they come with all the latest security patches and improvements.
QUESTION
ANSWER
Answered 2019-Jun-28 at 15:56It's in the right place package.json:window:icon
The problem is the path where your icon.png is located. Change to something like "build/icon.png" where build is the folder of your build target.
QUESTION
Is this possible to protect all files in project with nwjc tool and then package all this with nw-builder for example ?
Why this function only works with one file ? Official site says that they fixed performance issue in 0.22, but why there is no tool to protect all project files and include them like in index.html
:
require('nw.gui').Window.get().evalNWBin(null, 'app/mytest.bin');
ANSWER
Answered 2017-Jun-03 at 00:40NWJC only compiles JS into native code. It will never touch your HTML.
If your concern is security for proprietary code, you could use a tool like Enigma VB to consolidate your code into a single executable.
QUESTION
I have a NW application that starts with a splash screen, which then opens the main application in a new window. The code is approximately this:
...ANSWER
Answered 2017-Feb-09 at 19:02// Open a new window.
nw.Window.open("https://localhost:8080/", {
"icon": "app_icon.png",
"frame": true,
"width": 1200,
"height": 800,
"position": "center",
"resizable": true,
"min_width": 400,
"min_height": 200
}, function(win) {
console.log('window opened'. win);
win.on('loaded', function() {
console.log('window created');
}
});
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nw-builder
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page