firefox build: min_version, xpi

This commit is contained in:
tg(x) 2016-10-06 14:32:01 +02:00
parent 7851816f14
commit d10f6e024d
3 changed files with 18 additions and 9 deletions

View File

@ -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}));
});

View File

@ -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"
}
}

View File

@ -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",