script/post_install.js
function(win32Name, callback) {
        var name = require( _(self.path + '/package.json') ).name;
        var appPath = _( self.path.substring(0, (self.path.length - ("node_modules/" + name + '/').length)) );
        var source = _(self.path + '/core/template/command/gina.tpl');
        var target = _(appPath +'/'+ name);
        if ( typeof(win32Name) != 'undefined') {
            target = _(appPath +'/'+ win32Name)
        }

        //Will override.
        if ( typeof(callback) != 'undefined') {

            try {
                utils.generator.createFileFromTemplateSync(source, target);
                setTimeout(function () {
                    callback(false)
                }, 1000)
            } catch (err) {
                callback(err)
            }
        } else {
            utils.generator.createFileFromTemplateSync(source, target)
        }
    }
function(win32Name, callback) {
        var name = require( _(self.path + '/package.json') ).name;
        var appPath = _( self.path.substring(0, (self.path.length - ("node_modules/" + name + '/').length)) );
        var source = _(self.path + '/core/template/command/gina.tpl');
        var target = _(appPath +'/'+ name);
        if ( typeof(win32Name) != 'undefined') {
            target = _(appPath +'/'+ win32Name)
        }

        //Will override.
        if ( typeof(callback) != 'undefined') {

            try {
                utils.generator.createFileFromTemplateSync(source, target);
                setTimeout(function () {
                    callback(false)
                }, 1000)
            } catch (err) {
                callback(err)
            }
        } else {
            utils.generator.createFileFromTemplateSync(source, target)
        }
    }
function ( win32Name , callback ) { var name = require ( _ ( self . path + '/package.json' ) ) . name ; var appPath = _ ( self . path . substring ( 0 , ( self . path . length - ( "node_modules/" + name + '/' ) . length ) ) ) ; var source = _ ( self . path + '/core/template/command/gina.tpl' ) ; var target = _ ( appPath + '/' + name ) ; if ( typeof ( win32Name ) != 'undefined' ) { target = _ ( appPath + '/' + win32Name ) } //Will override.
 if ( typeof ( callback ) != 'undefined' ) { try { utils . generator . createFileFromTemplateSync ( source , target ) ; setTimeout ( function ( ) { callback ( false ) } , 1000 ) } catch ( err ) { callback ( err ) } } else { utils . generator . createFileFromTemplateSync ( source , target ) } }
Creating framework command line file for nix.
Creating framework command line file for nix .