@@ -73,31 +73,30 @@ module.exports = function( Release ) {
73
73
} ) ;
74
74
}
75
75
76
- function buildGoogleCDN ( next ) {
77
- makeArchive ( "googlecdn" , googleFilesCDN , next ) ;
76
+ function buildGoogleCDN ( ) {
77
+ makeArchive ( "googlecdn" , googleFilesCDN ) ;
78
78
}
79
79
80
- function buildMicrosoftCDN ( next ) {
81
- makeArchive ( "mscdn" , msFilesCDN , next ) ;
80
+ function buildMicrosoftCDN ( ) {
81
+ makeArchive ( "mscdn" , msFilesCDN ) ;
82
82
}
83
83
84
- function makeArchive ( cdn , files , next ) {
84
+ function makeArchive ( cdn , files ) {
85
85
if ( Release . preRelease ) {
86
86
console . log ( "Skipping archive creation for " + cdn + "; this is a beta release." ) ;
87
87
return ;
88
88
}
89
89
90
90
console . log ( "Creating production archive for " + cdn ) ;
91
91
92
- var archiver = require ( "archiver" ) ,
92
+ var archiver = require ( "archiver" ) ( "zip" ) ,
93
93
md5file = cdnFolder + "/" + cdn + "-md5.txt" ,
94
94
output = fs . createWriteStream ( cdnFolder + "/" + cdn + "-jquery-" + Release . newVersion + ".zip" ) ;
95
95
96
96
output . on ( "error" , function ( err ) {
97
97
throw err ;
98
98
} ) ;
99
99
100
- output . on ( "close" , next ) ;
101
100
archiver . pipe ( output ) ;
102
101
103
102
files = files . map ( function ( item ) {
@@ -137,8 +136,10 @@ module.exports = function( Release ) {
137
136
* Release completion
138
137
*/
139
138
complete : function ( ) {
140
- // Build CDN archives
141
- Release . _walk ( [ buildGoogleCDN , buildMicrosoftCDN , _complete ] ) ;
139
+ // Build CDN archives async
140
+ buildGoogleCDN ( ) ;
141
+ buildMicrosoftCDN ( ) ;
142
+ _complete ( ) ;
142
143
} ,
143
144
/**
144
145
* Our trac milestones are different than the new version
0 commit comments