1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Store versioned builds in builds folder

This commit is contained in:
Dan Finlay 2016-07-26 15:35:08 -07:00
parent 2368c2993d
commit 5276897668
2 changed files with 7 additions and 4 deletions

View File

@ -9,6 +9,8 @@
- Optionally, to rebuild on file changes, run `gulp dev`.
- To package .zip files for distribution, run `gulp zip`, or run the full build & zip with `gulp dist`.
Uncompressed builds can be found in `/dist`, compressed builds can be found in `/builds` once they're built.
## Architecture
[![Architecture Diagram](./docs/architecture.png)][1]

View File

@ -15,6 +15,7 @@ var del = require('del')
var eslint = require('gulp-eslint')
var fs = require('fs')
var path = require('path')
var manifest = require('./app/manifest.json')
// browser reload
@ -113,13 +114,13 @@ gulp.task('clean', function clean() {
// zip tasks for distribution
gulp.task('zip:chrome', () => {
return gulp.src('dist/chrome/**')
.pipe(zip('chrome.zip'))
.pipe(gulp.dest('dist'));
.pipe(zip(`metamask-chrome-${manifest.version}.zip`))
.pipe(gulp.dest('builds'));
});
gulp.task('zip:firefox', () => {
return gulp.src('dist/firefox/**')
.pipe(zip('firefox.zip'))
.pipe(gulp.dest('dist'));
.pipe(zip(`metamask-firefox-${manifest.version}.zip`))
.pipe(gulp.dest('builds'));
});
gulp.task('zip', gulp.parallel('zip:chrome', 'zip:firefox'))