diff options
author | tg(x) <*@tg-x.net> | 2016-10-06 14:32:01 +0200 |
---|---|---|
committer | tg(x) <*@tg-x.net> | 2016-10-06 14:32:01 +0200 |
commit | d10f6e024dd23590ba948dfa6b3850abb6317663 (patch) | |
tree | 44130e59c303cdb648a75c97e1e29811af1a4cd8 | |
parent | 7851816f14d5f58e78369bfc8c984a1101e92bc5 (diff) |
firefox build: min_version, xpi
-rw-r--r-- | gulpfile.js | 17 | ||||
-rw-r--r-- | manifest.json | 9 | ||||
-rw-r--r-- | package.json | 1 |
3 files changed, 18 insertions, 9 deletions
diff --git a/gulpfile.js b/gulpfile.js index fabfcbdeb..ef2310beb 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -34,6 +34,7 @@ const map = require("map-stream"); const zip = require("gulp-zip"); const gzip = require("gulp-gzip"); const rename = require("gulp-rename"); +const symlink = require("gulp-sym"); const tar = require("gulp-tar"); const concat = require("gulp-concat"); const ts = require("gulp-typescript"); @@ -153,7 +154,7 @@ function gglob(ps) { } else { patPos.push(x); console.log("Pattern", x); - } + } } let result = new Set(); for (let pat of patPos) { @@ -244,17 +245,23 @@ gulp.task("manifest-unstable", ["clean"], function () { gulp.task("package-stable", ["compile-prod", "dist-prod", "manifest-stable"], function () { - let zipname = String.prototype.concat("taler-wallet-stable-", manifest.version_name, "-", manifest.version, ".zip"); + let basename = String.prototype.concat("taler-wallet-stable-", manifest.version_name, "-", manifest.version); + let zipname = basename + ".zip"; + let xpiname = basename + ".xpi"; return gulp.src("build/ext/**", {buffer: false, stripBOM: false}) .pipe(zip(zipname)) - .pipe(gulp.dest("build/")); + .pipe(gulp.dest("build/")) + .pipe(symlink("build/" + xpiname, {relative: true, force: true})); }); gulp.task("package-unstable", ["compile-prod", "dist-prod", "manifest-unstable"], function () { - let zipname = String.prototype.concat("taler-wallet-unstable-", manifest.version_name, "-", manifest.version, ".zip"); + let basename = String.prototype.concat("taler-wallet-unstable-", manifest.version_name, "-", manifest.version); + let zipname = basename + ".zip"; + let xpiname = basename + ".xpi"; return gulp.src("build/ext/**", {buffer: false, stripBOM: false}) .pipe(zip(zipname)) - .pipe(gulp.dest("build/")); + .pipe(gulp.dest("build/")) + .pipe(symlink("build/" + xpiname, {relative: true, force: true})); }); diff --git a/manifest.json b/manifest.json index fea858369..4df0a7fba 100644 --- a/manifest.json +++ b/manifest.json @@ -5,9 +5,12 @@ "version": "0.6.14", "version_name": "0.0.1-pre8", + "minimum_chrome_version": "49", + "applications": { "gecko": { - "id": "devs@taler.net" + "id": "devs@taler.net", + "strict_min_version": "50.*" } }, @@ -45,7 +48,5 @@ "background": { "page": "background/background.html" - }, - - "minimum_chrome_version": "49" + } } diff --git a/package.json b/package.json index 9b85bec9e..406a15858 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "gulp-json-transform": "^0.4.2", "gulp-rename": "^1.2.2", "gulp-stream": "0.0.2", + "gulp-sym": "0.0.14", "gulp-tar": "^1.8.0", "gulp-typescript": "^3.0.2", "gulp-zip": "^3.1.0", |