From 71f98075682fc46ae7641a1e4462869648e467f1 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 18 Mar 2016 14:40:35 +0100 Subject: [PATCH] appdist --- Makefile | 3 +++ gulpfile.js | 40 +++++++++++++++++++++++++++++++++++++--- 2 files changed, 40 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 23ae8518b..58f5eddcc 100644 --- a/Makefile +++ b/Makefile @@ -46,6 +46,9 @@ pogen: $(ts) pogen/pogen.js node_modules dist: $(gulp) srcdist +appdist: + $(gulp) appdist + lib/i18n-strings.js: $(ts) node_modules truncate -s0 $@ for lang in $(langs); do \ diff --git a/gulpfile.js b/gulpfile.js index dfcbca1be..3f50e64e7 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -51,10 +51,10 @@ const paths = { "content_scripts/*.{ts,tsx}", "popup/*.{ts,tsx}", "pages/*.{ts,tsx}", - "!**/*.d.ts" + "!**/*.d.ts", ], dev: [ - "test/tests/*.{ts,tsx}" + "test/tests/*.{ts,tsx}", ], }, dist: [ @@ -80,6 +80,28 @@ const paths = { "pogen/tsconfig.json", "pogen/example/test.ts", ], + /* French copyright application */ + appdist: [ + "style/*.css", + "img/**", + "lib/**/*.{ts,tsx}", + "!lib/vendor/*", + "!**/*.d.ts", + "background/*.{ts,tsx}", + "content_scripts/*.{ts,tsx}", + "popup/*.{ts,tsx}", + "pages/*.{ts,tsx}", + "AUTHORS", + "README", + "COPYING", + "Makefile", + "gulpfile.js", + "test/tests/*.{ts,tsx}", + "pogen/pogen.ts", + "lib/module-trampoline.js", + "popup/**/*.{html,css}", + "pages/**/*.{html,css}", + ], }; paths.srcdist = [].concat(paths.ts.release, @@ -168,13 +190,25 @@ gulp.task("package-unstable", ["compile-prod", "dist-prod", "manifest-unstable"] * Create source distribution. */ gulp.task("srcdist", [], function () { - let zipname = String.prototype.concat("taler-wallet-", manifest.version, "-src.zip"); + let zipname = String.prototype.concat("taler-wallet-webex", manifest.version, "-src.zip"); return gulp.src(paths.srcdist, {buffer: false, stripBOM: false, base: "."}) .pipe(zip(zipname)) .pipe(gulp.dest(".")); }); +/** + * Create source distribution for + * French copyright application. + */ +gulp.task("appdist", [], function () { + let zipname = String.prototype.concat("taler-wallet-webex", manifest.version, "-appsrc.zip"); + return gulp.src(paths.appdist, {buffer: false, stripBOM: false, base: "."}) + .pipe(zip(zipname)) + .pipe(gulp.dest(".")); +}); + + /** * Compile po extraction script. */