1
0
mirror of https://github.com/bitwarden/desktop.git synced 2024-07-03 11:44:45 +02: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'), webpack = require('webpack-stream'),
jeditor = require("gulp-json-editor"), jeditor = require("gulp-json-editor"),
gulpUtil = require('gulp-util'), gulpUtil = require('gulp-util'),
child = require('child_process'); child = require('child_process'),
zip = require('gulp-zip');
var paths = {}; var paths = {};
paths.dist = './dist/'; paths.dist = './dist/';
@ -239,6 +240,7 @@ gulp.task('dist-firefox', ['dist'], function (cb) {
return manifest; return manifest;
})) }))
.pipe(gulp.dest(paths.dist)); .pipe(gulp.dest(paths.dist));
return zipDist('dist-firefox');
}); });
gulp.task('dist-edge', ['dist:edge'], function (cb) { gulp.task('dist-edge', ['dist:edge'], function (cb) {
@ -251,8 +253,19 @@ gulp.task('dist-edge', ['dist:edge'], function (cb) {
return manifest; return manifest;
})) }))
.pipe(gulp.dest(paths.dist)); .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 () { gulp.task('webfonts', function () {
return gulp.src('./webfonts.list') return gulp.src('./webfonts.list')
.pipe(googleWebFonts({})) .pipe(googleWebFonts({}))

View File

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