aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-07-27 06:41:10 +0800
committerGitHub <noreply@github.com>2016-07-27 06:41:10 +0800
commit89ff78a4e1c7bb6346e87869b90fc2b14327966e (patch)
tree1cc4cb6fd0170ffb1b0db886041474e7306dae61
parent2368c2993d44375203e0b85158bac707489d1137 (diff)
parent5276897668674bb5e34923a473920564603ad292 (diff)
downloadtangerine-wallet-browser-89ff78a4e1c7bb6346e87869b90fc2b14327966e.tar
tangerine-wallet-browser-89ff78a4e1c7bb6346e87869b90fc2b14327966e.tar.gz
tangerine-wallet-browser-89ff78a4e1c7bb6346e87869b90fc2b14327966e.tar.bz2
tangerine-wallet-browser-89ff78a4e1c7bb6346e87869b90fc2b14327966e.tar.lz
tangerine-wallet-browser-89ff78a4e1c7bb6346e87869b90fc2b14327966e.tar.xz
tangerine-wallet-browser-89ff78a4e1c7bb6346e87869b90fc2b14327966e.tar.zst
tangerine-wallet-browser-89ff78a4e1c7bb6346e87869b90fc2b14327966e.zip
Merge pull request #488 from MetaMask/BuildsFolder
Store versioned builds in builds folder
-rw-r--r--README.md2
-rw-r--r--gulpfile.js9
2 files changed, 7 insertions, 4 deletions
diff --git a/README.md b/README.md
index 057c85346..7f6fbc498 100644
--- a/README.md
+++ b/README.md
@@ -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]
diff --git a/gulpfile.js b/gulpfile.js
index 5dbdea04b..d63a95975 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -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'))