Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc-browser.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarjolintu <sami.vanttinen@protonmail.com>2019-03-28 14:27:44 +0300
committervarjolintu <sami.vanttinen@protonmail.com>2019-04-10 14:43:50 +0300
commitf041703315ec1089d685ff939e40fbcd707bc572 (patch)
treea3c8ec7be1d010f0911d00e993bf43bb71c51d51 /build.js
parentc852ba226dde9f5fecf37707b5df7b454580fe4a (diff)
Improve the build script
Diffstat (limited to 'build.js')
-rw-r--r--build.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/build.js b/build.js
index f654cbb..e9134f2 100644
--- a/build.js
+++ b/build.js
@@ -2,6 +2,8 @@
const fs = require('fs');
const extra = require('fs-extra');
+const util = require('util');
+const exec = util.promisify(require('child_process').exec);
const zaf = require('zip-a-folder');
const DEST = 'keepassxc-browser';
@@ -31,7 +33,14 @@ function adjustManifest(manifest) {
return `keepassxc-browser_${data['version']}_${browser}.zip`;
}
+async function updateTranslations() {
+ console.log('Pulling translations from Transifex, please wait...');
+ const { stdout } = await exec('tx pull -af');
+ console.log(stdout);
+}
+
(async() => {
+ await updateTranslations();
fs.copyFileSync(`${DEST}/manifest.json`, `./${DEFAULT}`);
for (const browser in BROWSERS) {
@@ -45,4 +54,4 @@ function adjustManifest(manifest) {
}
fs.renameSync(DEFAULT, `${DEST}/manifest.json`);
-})()
+})();