code: function resolve() {
    return whichNativeNodish('..')
      .then(function (results) {
        var nwVersion = results.nwVersion;
        var asVersion = results.asVersion;
  
        debug('which-native-nodish output: %j', results);
  
        var prefix = '';
        var target = '';
        var debugArg = process.env.BUILD_DEBUG ? ' --debug' : '';
        var builder = 'node-gyp';
        var distUrl = '';
  
        if (asVersion) {
          prefix = (process.platform === 'win32' ?
            'SET USERPROFILE=%USERPROFILE%\\.electron-gyp&&' :
            'HOME=~/.electron-gyp');
  
          target = '--target=' + asVersion;
          distUrl = '--dist-url=https://atom.io/download/atom-shell';
        }
        else if (nwVersion) {
          builder = 'nw-gyp';
          target = '--target=' + nwVersion;
        }
  
        builder = '"' + path.resolve(__dirname, '..', 'node_modules', '.bin', builder) + '"';
  
        return [prefix, builder, 'rebuild', target, debugArg, distUrl]
          .join(' ').trim();
      });
  }
docs: Resolve the build command
  
  @returns {Q.promise} The build command