1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-11-17 10:45:41 +01:00
This commit is contained in:
Kyle Spearrin 2017-08-31 15:55:39 -04:00
parent 8387d7d489
commit 36c7f741d7
2 changed files with 16 additions and 2 deletions

View File

@ -13,7 +13,8 @@
webpack = require('webpack-stream'),
jeditor = require("gulp-json-editor"),
gulpUtil = require('gulp-util'),
child = require('child_process');
child = require('child_process'),
zip = require('gulp-zip');
var paths = {};
paths.dist = './dist/';
@ -239,6 +240,7 @@ gulp.task('dist-firefox', ['dist'], function (cb) {
return manifest;
}))
.pipe(gulp.dest(paths.dist));
return zipDist('dist-firefox');
});
gulp.task('dist-edge', ['dist:edge'], function (cb) {
@ -251,8 +253,19 @@ gulp.task('dist-edge', ['dist:edge'], function (cb) {
return manifest;
}))
.pipe(gulp.dest(paths.dist));
return zipDist('dist-edge');
});
gulp.task('dist-other', ['dist'], function (cb) {
return zipDist('dist-other');
});
function zipDist(fileName) {
return gulp.src(paths.dist + '**/*')
.pipe(zip(fileName + '.zip'))
.pipe(gulp.dest(paths.dist));
}
gulp.task('webfonts', function () {
return gulp.src('./webfonts.list')
.pipe(googleWebFonts({}))

View File

@ -40,6 +40,7 @@
"papaparse": "4.3.5",
"web-ext": "2.0.0",
"child_process": "1.0.2",
"gulp-util": "3.0.8"
"gulp-util": "3.0.8",
"gulp-zip": "4.0.0"
}
}