Development server and patch generator for the AxLoader library.
| AxLoaderGen | Development server and patch generator for the AxLoader library. |
| Functions | |
| makeArchive | Builds a archive based on a configuration. |
| getFilename | |
| diffArchives | Creates a new archive that contains all the files in b that are not in a or have changed since a, and has it’s comment set to metadata the same as that in a except the patchVersion property, which will be the version of a, and the removedFiles property which contains a list of files in a but not in b. |
| saveArchive | Saves a archive file to disk. |
| sendArchive | Sends the archive file to a response object. |
| archiveRequestHandler | The request handler for generating and serving archives. |
| getAxLoaderInfo | Returns the object that goes into the _axloaderInfo file. |
| getPatchableVersions | Returns a list of the avalible base versions for a given folder. |
| getBestVersion | Takes a list of the avalible filenames and returns an integer version number that represents the highest version. |
| areBuffersEqual | Retruns true of two buffers are equal. |
| addToIndex | Adds an item to the index object. |
| generate | Generates the base versions and any patches needed. |
| devServer | Starts a server for development. |
| testserver | Starts a server for testing patching. |
function diffArchives( a, b )
Creates a new archive that contains all the files in b that are not in a or have changed since a, and has it’s comment set to metadata the same as that in a except the patchVersion property, which will be the version of a, and the removedFiles property which contains a list of files in a but not in b.
| a | (QuickArchive) The old version we want to generate a patch from. |
| b | (QuickArchive) The new version we want to generate a patch to. |
(QuickArchive) The patch.
function getBestVersion( versions )
Takes a list of the avalible filenames and returns an integer version number that represents the highest version. Debug versions have a version number of -1.
| versions | (Object) An object containing the version propeties. |
(number) The best version number.
Builds a archive based on a configuration.
function makeArchive( genconf )
function getFilename( folder, patchversion, version )
Creates a new archive that contains all the files in b that are not in a or have changed since a, and has it’s comment set to metadata the same as that in a except the patchVersion property, which will be the version of a, and the removedFiles property which contains a list of files in a but not in b.
function diffArchives( a, b )
Saves a archive file to disk.
function saveArchive( genconf, buffer )
Sends the archive file to a response object.
function sendArchive( buffer, res )
The request handler for generating and serving archives.
function archiveRequestHandler( genconf, req, res )
Returns the object that goes into the _axloaderInfo file.
function getAxLoaderInfo( folder )
Returns a list of the avalible base versions for a given folder.
function getPatchableVersions( folder, index )
Takes a list of the avalible filenames and returns an integer version number that represents the highest version.
function getBestVersion( versions )
Retruns true of two buffers are equal.
function areBuffersEqual( a, b )
Adds an item to the index object.
function addToIndex( index, folder, patchversion, version, filename )
Generates the base versions and any patches needed.
function generate( c )
Starts a server for testing patching.
function testserver( c )