How to convert this bunch of files with three.js runned in nw.js into an 1 file executable

My package.json is this:

{
“name”: “helloworld”,
“main”: “index.html”
}

And the html file is this:

index.html (2.0 KB)

They works, showing this image:

But the doubt is: How to create a 1 file executable with nw.js which needs 0 files excepto the main.exe file to run?

Update: I runned this command with nwbuild and this is the result:

C:\Users\usuario\Downloads\nwjs\v2\nwjs-v0.89.0-win-x64\nwjs-v0.89.0-win-x64>nwbuild --help
fs.js:44
} = primordials;
^

ReferenceError: primordials is not defined
at fs.js:44:5
at req_ (C:\Users\usuario\AppData\Roaming\npm\node_modules\node-webkit-builder\node_modules\natives\index.js:143:24)
at Object.req [as require] (C:\Users\usuario\AppData\Roaming\npm\node_modules\node-webkit-builder\node_modules\natives\index.js:55:10)
at Object. (C:\Users\usuario\AppData\Roaming\npm\node_modules\node-webkit-builder\node_modules\graceful-fs\fs.js:1:37)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions…js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32)
at Module._load (node:internal/modules/cjs/loader:1022:12)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at require (node:internal/modules/helpers:179:18)

Node.js v20.12.1