8/1/2023 0 Comments Installer maker for github![]() ![]() name - The filename that will be written into (and subsequently unpacked from) the tar file.An object with the following properties:.If you want behavior that unpacks files into parent directories or absolute paths, instead pass an object with a location as a property. Absolute paths and paths that are in a parent directory of the entrypoint file will be placed at the root of the temporary directory inside the package (so if the entrypoint is also at the root, it could access those files via _dirname+'/' or require('.')). A path to a file or folder on the file system.When the generated shell script is run, the last thing it will do is call node. IMPORTANT: the first element of the list will be used as the entrypoint script. ![]() They can be accessed from the script as if the files were in their current relative locations. files - A list of entries representing files the installation script will embed in the generated shell script.Currently the version of node.js is not checked. nodeVersions - An array of acceptable node.js versions, each in the format 'X.XX.XX' (e.g.options - A set of options for how the installer is created.installerJavascriptFile - A handle to the javascript to Can either be an object with a toString method, or it can be a Stream.Var packageStream = makeInstaller(options) - creates an installer shell script MakeInstaller.fs = require("graceful-fs") - set an object that will be used in place of fs inside installer-maker Var makeInstaller = require ( 'installer-maker' ) Run it in a location outside the shared directory node API Vagrant note: this installer (like many many other things) won't work in a linux-vagrant shared directory in a windows host environment. If you want to access the directory that the shell script was run from, it is the parent directory of the directory in which the node script is run in (ie process.directory+"/."). Note: The node install script runs in a temporary directory that is be deleted after the install process. Otherwise you shouldn't have to use sudo unless your installation script itself requires it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |