diff options
author | Florian Dold <florian@dold.me> | 2024-01-23 22:29:21 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2024-01-23 22:29:21 +0100 |
commit | 937d9204e6c66bdc13e7b770a125d008bdfc6587 (patch) | |
tree | f41be3147e18011122e315a1fe4f198facd2f9e8 /packages/taler-wallet-cli/build-qtart.mjs | |
parent | 7e7306ec4585c5fd7a2ceb727177e7d249ae6031 (diff) | |
download | wallet-core-937d9204e6c66bdc13e7b770a125d008bdfc6587.tar.xz |
wallet-core: expose build version info via request
Diffstat (limited to 'packages/taler-wallet-cli/build-qtart.mjs')
-rwxr-xr-x | packages/taler-wallet-cli/build-qtart.mjs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/taler-wallet-cli/build-qtart.mjs b/packages/taler-wallet-cli/build-qtart.mjs index 7042bf49e..04b2e718f 100755 --- a/packages/taler-wallet-cli/build-qtart.mjs +++ b/packages/taler-wallet-cli/build-qtart.mjs @@ -43,7 +43,10 @@ function git_hash() { if (rev.indexOf("/") === -1) { return rev; } else { - return fs.readFileSync(path.join(GIT_ROOT, ".git", rev)).toString().trim(); + return fs + .readFileSync(path.join(GIT_ROOT, ".git", rev)) + .toString() + .trim(); } } @@ -63,6 +66,8 @@ export const buildConfig = { define: { __VERSION__: `"${_package.version}"`, __GIT_HASH__: `"${GIT_HASH}"`, + "walletCoreBuildInfo.implementationSemver": `"${_package.version}"`, + "walletCoreBuildInfo.implementationGitHash": `"${GIT_HASH}"`, }, }; |