From befc11e3949559c518982528c9b0f9e45bfe6fa8 Mon Sep 17 00:00:00 2001 From: Chris Talkington Date: Sun, 12 May 2013 15:50:54 -0500 Subject: [PATCH] build: correct paths so that archiving works. (cherry picked from commit 8ab32fe3ff81491e01f2da132ec2ba9bd499b555) --- build/release.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 ); -- 2.39.5