@@ -146,6 +146,8 @@ gulp.task('create-7zip-archive', function(cb) {
146146 // only include prefetch folder when zipping if the folder exists and we're doing a bundle build
147147 if ( fs . existsSync ( path . resolve ( prefetchFolder ) ) && installerExe . indexOf ( "-bundle" ) > 0 ) {
148148 packCmd = packCmd + ' ' + path . resolve ( prefetchFolder ) + path . sep + '*' ;
149+ } else {
150+ packCmd = packCmd + ' ' + path . resolve ( prefetchFolder ) + path . sep + 'cygwin.exe' ;
149151 }
150152 //console.log('[DEBUG]' + packCmd);
151153 exec ( packCmd , createExecCallback ( cb , true ) ) ;
@@ -229,7 +231,7 @@ function createSHA256File(filename, cb) {
229231// Create stub installer that will then download all the requirements
230232gulp . task ( 'package-simple' , function ( cb ) {
231233 runSequence ( [ 'check-requirements' , 'clean' ] , 'create-dist-win-dir' , 'update-devstudio-version' , [ 'generate' ,
232- 'prepare-tools' ] , 'package' , 'cleanup' , cb ) ;
234+ 'prepare-tools' ] , 'prefetch-cygwin' , ' package', 'cleanup' , cb ) ;
233235} ) ;
234236
235237gulp . task ( 'package-bundle' , function ( cb ) {
@@ -300,6 +302,11 @@ gulp.task('prefetch', ['create-prefetch-cache-dir'], function() {
300302 return prefetch ( 'yes' , prefetchFolder ) ;
301303} ) ;
302304
305+ // prefetch cygwin to always include into installer
306+ gulp . task ( 'prefetch-cygwin' , [ 'create-prefetch-cache-dir' ] , function ( ) {
307+ return prefetch ( 'always' , prefetchFolder ) ;
308+ } ) ;
309+
303310gulp . task ( 'prefetch-tools' , [ 'create-tools-dir' ] , function ( ) {
304311 return prefetch ( 'tools' , toolsFolder ) ;
305312} ) ;
0 commit comments