diff options
author | varjolintu <sami.vanttinen@protonmail.com> | 2019-03-28 14:27:44 +0300 |
---|---|---|
committer | varjolintu <sami.vanttinen@protonmail.com> | 2019-04-10 14:43:50 +0300 |
commit | f041703315ec1089d685ff939e40fbcd707bc572 (patch) | |
tree | a3c8ec7be1d010f0911d00e993bf43bb71c51d51 /build.js | |
parent | c852ba226dde9f5fecf37707b5df7b454580fe4a (diff) |
Improve the build script
Diffstat (limited to 'build.js')
-rw-r--r-- | build.js | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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`); -})() +})(); |