Generate a project file (currently this is very limited and not customizable).AlternativesĮnigmavirtualbox is a Node.js module and CLI, that offers the We will use theĭefault templates for any missing template, so you don't have to replace all of them. To make generateEvb use the updated templates just pass it the optional options.templatePath object. Then you can go back to the templates copy, and modify Then you should do a diff between the beforeĪnd after, so you will see what options need changing. Use enigmavb.exe (Enigma's GUI) to change the options as you see fit. If you can't find the option, I suggest that you generate the project file using the default options and The templates are xml files that are pretty descriptive, so for most options it should be easy to figure our what needsĬhanging. 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. allowRunningOfVirtualExeFiles (Boolean) - same as Enigma's "Options Tab > Allow running of virtual.mapExecutableWithTemporaryFile (Boolean) - same as Enigma's "Options Tab > Map executable files using.shareVirtualSystem (Boolean) - same as Enigma's "Options Tab > Share virtual system to child processes".compressFiles (Boolean) - same as Enigma's "File Options > Compress Files".deleteExtractedOnExit (Boolean) - same as Enigma's "File Options > Delete Extracted On Exit".file (String) - path to a file template.dir (String) - path to a directory template.project (String) - path to a project template.templatePath (Object) - optional, will default to the templates in the generate-evb/templates.Or directory you want to pack, and false for anything else The function should return true for any file (String), isDir (Boolean) for each directory and file in path2Pack.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |