The default template files are located at generate-evb/templates.īefore you change them, copy the templates to a location outside of node_modules. you want to add virtual registry entries), you can use custom templates. If an option/setting you are looking for is notĪvailable there (e.g. You can customize the generated project using options.evbOptions. execFile ( evbCliPath, , function ( err, stdout, stderr ) ) Customization Var fs = require ( 'fs' ) var child_process = require ( 'child_process' ) // Change the following paths to the actual paths used in your project var evbCliPath = 'C:/Program Files (x86)/Enigma Virtual Box/enigmavbconsole.exe' var projectName = 'build/packedNode.evb' var inputExe = 'C:/Program Files (x86)/nodejs/node.exe' var outputExe = 'build/node.exe' child_process. And we will save the evb project to build/packedNode.evb, so that's We want to save the packaged executable toīuild/node.exe so that will be our outputExe. (all paths can be relative or absolute), so that's our path2Pack. Our copy of node.exe is located atĬ:/Program Files (x86)/nodejs/node.exe, so that will be our inputExe. Let's say that we want to pack a Node.js project into node.exe.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |