From: Chris Talkington Date: Sun, 12 May 2013 20:50:54 +0000 (-0500) Subject: build: correct paths so that archiving works. X-Git-Tag: 1.10.0~10 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=befc11e3949559c518982528c9b0f9e45bfe6fa8;p=jquery.git build: correct paths so that archiving works. (cherry picked from commit 8ab32fe3ff81491e01f2da132ec2ba9bd499b555) --- diff --git a/build/release.js b/build/release.js index a109e044a..bd9786eb4 100644 --- a/build/release.js +++ b/build/release.js @@ -162,10 +162,10 @@ function makeReleaseCopies( next ) { "\",\"sources\":[\"" + releaseFile.replace( /\.min\.map/, ".js" ) + "\"]" ); console.log( "Modifying map " + builtFile + " to " + releaseFile ); if ( !debug ) { - fs.writeFileSync( releaseFile, text ); + fs.writeFileSync( "dist/" + releaseFile, text ); } } else { - copy( builtFile, releaseFile ); + copy( builtFile, "dist/" + releaseFile ); } jQueryFilesCDN.push( releaseFile ); @@ -228,16 +228,18 @@ function updatePackageVersion( ver ) { } function makeArchive( cdn, files, fn ) { - if ( isBeta ) { console.log( "Skipping archive creation for " + cdn + "; " + releaseVersion + " is beta" ); process.nextTick( fn ); - return + return; } - console.log("Creating production archive for " + cdn ); + + console.log( "Creating production archive for " + cdn ); + files = files.map(function( item ) { return "dist/" + item.replace( /VER/g, releaseVersion ); }); + var md5file = "dist/" + cdn + "-md5.txt"; exec( "md5sum", files, function( err, stdout, stderr ) { fs.writeFileSync( md5file, stdout );