Skip to content

Commit

Permalink
Fix linting in gulpfile
Browse files Browse the repository at this point in the history
  • Loading branch information
platinumjesus committed Oct 4, 2019
1 parent 1537575 commit 7a803cd
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,14 +318,18 @@ gulp.task('downloadffmpeg', done => {
});

gulp.task('unzipffmpeg', () => {
var ffpath;

if (parsePlatforms()[0] === 'osx64'){
// Need to check Correct folder on every Nw.js Upgrade as long as we use nwjs Binary directly
var ffpath = './build/' + pkJson.name + '/' + parsePlatforms() + '/' + pkJson.name + '.app/Contents/Versions/69.0.3497.100';
ffpath = './build/' + pkJson.name + '/' + parsePlatforms() + '/' + pkJson.name + '.app/Contents/Versions/69.0.3497.100';
} else {
var ffpath = './build/' + pkJson.name + '/' + parsePlatforms();
ffpath = './build/' + pkJson.name + '/' + parsePlatforms();
}
if (parsePlatforms()[0].indexOf('win') === -1)

if (parsePlatforms()[0].indexOf('win') === -1) {
ffpath = ffpath + '/lib';
}
return gulp.src('./cache/ffmpeg/*.{tar,tar.bz2,tar.gz,zip}')
.pipe(decompress({ strip: 1 }))
.pipe(gulp.dest(ffpath))
Expand All @@ -338,15 +342,17 @@ gulp.task('unzipffmpeg', () => {

// development purpose
gulp.task('unzipffmpegcache', () => {
if (parsePlatforms()[0] === 'osx64'){
var platform = parsePlatforms()[0],
bin;

if (platform === 'osx64') {
// Need to check Correct folder on every Nw.js Upgrade as long as we use nwjs Binary directly
var platform = parsePlatforms()[0];
var bin = path.join('cache', nwVersion + '-' + nwFlavor, platform, pkJson.name + '.app/Contents/Versions/69.0.3497.100' );
bin = path.join('cache', nwVersion + '-' + nwFlavor, platform, pkJson.name + '.app/Contents/Versions/69.0.3497.100' );
} else {
var platform = parsePlatforms()[0];
var bin = path.join('cache', nwVersion + '-' + nwFlavor, platform);
if (platform.indexOf('win') === -1)
bin = path.join('cache', nwVersion + '-' + nwFlavor, platform);
if (platform.indexOf('win') === -1) {
bin = bin + '/lib';
}
}
return gulp.src('./cache/ffmpeg/*.{tar,tar.bz2,tar.gz,zip}')
.pipe(decompress({ strip: 1 }))
Expand Down

0 comments on commit 7a803cd

Please sign in to comment.