diff options
author | Chris Talkington <chris@talkingtontech.com> | 2013-05-12 15:50:54 -0500 |
---|---|---|
committer | Chris Talkington <chris@talkingtontech.com> | 2013-05-12 16:02:00 -0500 |
commit | 8ab32fe3ff81491e01f2da132ec2ba9bd499b555 (patch) | |
tree | be28c6905588328710e2624c8d801d41617fc4b1 | |
parent | 8ee67bde11ef496dcde4ee026e905c52eb7d4782 (diff) | |
download | jquery-8ab32fe3ff81491e01f2da132ec2ba9bd499b555.tar.gz jquery-8ab32fe3ff81491e01f2da132ec2ba9bd499b555.zip |
build: correct paths so that archiving works.
-rw-r--r-- | build/release.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/build/release.js b/build/release.js index f2e4cf560..774bd0447 100644 --- a/build/release.js +++ b/build/release.js @@ -163,10 +163,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 ); @@ -229,16 +229,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 ); |