mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
build: correct paths so that archiving works.
This commit is contained in:
parent
8ee67bde11
commit
8ab32fe3ff
@ -163,10 +163,10 @@ function makeReleaseCopies( next ) {
|
|||||||
"\",\"sources\":[\"" + releaseFile.replace( /\.min\.map/, ".js" ) + "\"]" );
|
"\",\"sources\":[\"" + releaseFile.replace( /\.min\.map/, ".js" ) + "\"]" );
|
||||||
console.log( "Modifying map " + builtFile + " to " + releaseFile );
|
console.log( "Modifying map " + builtFile + " to " + releaseFile );
|
||||||
if ( !debug ) {
|
if ( !debug ) {
|
||||||
fs.writeFileSync( releaseFile, text );
|
fs.writeFileSync( "dist/" + releaseFile, text );
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
copy( builtFile, releaseFile );
|
copy( builtFile, "dist/" + releaseFile );
|
||||||
}
|
}
|
||||||
|
|
||||||
jQueryFilesCDN.push( releaseFile );
|
jQueryFilesCDN.push( releaseFile );
|
||||||
@ -229,16 +229,18 @@ function updatePackageVersion( ver ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function makeArchive( cdn, files, fn ) {
|
function makeArchive( cdn, files, fn ) {
|
||||||
|
|
||||||
if ( isBeta ) {
|
if ( isBeta ) {
|
||||||
console.log( "Skipping archive creation for " + cdn + "; " + releaseVersion + " is beta" );
|
console.log( "Skipping archive creation for " + cdn + "; " + releaseVersion + " is beta" );
|
||||||
process.nextTick( fn );
|
process.nextTick( fn );
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
console.log("Creating production archive for " + cdn );
|
|
||||||
|
console.log( "Creating production archive for " + cdn );
|
||||||
|
|
||||||
files = files.map(function( item ) {
|
files = files.map(function( item ) {
|
||||||
return "dist/" + item.replace( /VER/g, releaseVersion );
|
return "dist/" + item.replace( /VER/g, releaseVersion );
|
||||||
});
|
});
|
||||||
|
|
||||||
var md5file = "dist/" + cdn + "-md5.txt";
|
var md5file = "dist/" + cdn + "-md5.txt";
|
||||||
exec( "md5sum", files, function( err, stdout, stderr ) {
|
exec( "md5sum", files, function( err, stdout, stderr ) {
|
||||||
fs.writeFileSync( md5file, stdout );
|
fs.writeFileSync( md5file, stdout );
|
||||||
|
Loading…
Reference in New Issue
Block a user