Skip to content

Commit 84bed1f

Browse files
committed
JBDS-4031 error sha check for downloaded cygwin
1 parent e6c09e3 commit 84bed1f

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

gulpfile.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
230232
gulp.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

235237
gulp.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+
303310
gulp.task('prefetch-tools', ['create-tools-dir'], function() {
304311
return prefetch('tools', toolsFolder);
305312
});

requirements.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"cygwin.exe": {
3737
"name": "Cygwin",
3838
"description": "A distribution of popular GNU and other Open Source tools running on Microsoft Windows",
39-
"bundle": "yes",
39+
"bundle": "always",
4040
"version": "2.5.2",
4141
"url": "https://developers.redhat.com/redirect/to/cygwin-installer-2.5.2.download",
4242
"filename": "cygwin_2.5.2.exe",

0 commit comments

Comments
 (0)