text: module.exports = {
  	options: {
  		'deploy/package.json' : 'version',
  		'installer/win32.nsi' : function(contents, version)
  		{
  			// Strip off any "-alpha" "-beta" "-rc" etc
  			var extra = version.lastIndexOf('-');
  			var parts = (extra > -1 ? version.substr(0, extra) : version).split('.');
  
  			// Replace in the file contents and return
  			return contents.replace(/(\!define VERSIONMAJOR) [0-9]+/, "$1 " + parts[0])
  				.replace(/(\!define VERSIONMINOR) [0-9]+/, "$1 " + parts[1])
  				.replace(/(\!define VERSIONBUILD) [0-9]+/, "$1 " + parts[2]);
  		},
  		'installer/win64.nsi' : function(contents, version)
  		{
  			// Strip off any "-alpha" "-beta" "-rc" etc
  			var extra = version.lastIndexOf('-');
  			var parts = (extra > -1 ? version.substr(0, extra) : version).split('.');
  
  			// Replace in the file contents and return
  			return contents.replace(/(\!define VERSIONMAJOR) [0-9]+/, "$1 " + parts[0])
  				.replace(/(\!define VERSIONMINOR) [0-9]+/, "$1 " + parts[1])
  				.replace(/(\!define VERSIONBUILD) [0-9]+/, "$1 " + parts[2]);
  		},
  		'deploy/index.html' : [
  			'cache-bust',
  			function(contents, version)
  			{
  				return contents.replace(/<span id\=\"version\">[^<]+<\/span>/, 
  					'<span id="version">'+version+'</span>');
  			}
  		]
  	}
  };