1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-15 12:25:15 +03:00

read version information from... version.json

This commit is contained in:
Kyle K 2019-08-11 07:23:13 +00:00
parent 7189363f98
commit 3fb1d96370
3 changed files with 24 additions and 22 deletions

View file

@ -476,7 +476,10 @@ function getHash(cb) {
function writeChangesetId() {
var versionJson = new stream.Readable;
versionJson.push(JSON.stringify({ gitChangesetId: gitChangeSetId }, undefined, 2));
versionJson.push(JSON.stringify({
gitChangesetId: gitChangeSetId,
version: pkg.version
}, undefined, 2));
versionJson.push(null);
return versionJson
.pipe(source('version.json'))