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

Standardised configurator version naming.

This commit is contained in:
Michael Keller 2021-08-22 18:54:34 +12:00
parent 515f650055
commit 4480621c14
12 changed files with 221 additions and 181 deletions

View file

@ -29,8 +29,17 @@ const CONFIGURATOR = {
virtualApiVersion: '0.0.1',
cliActive: false,
cliValid: false,
gitChangesetId: 'unknown',
productName: 'Betaflight Configurator',
version: '0.0.1',
gitRevision: 'norevision',
latestVersion: '0.0.1',
latestVersionReleaseUrl: 'https://github.com/betaflight/betaflight-configurator/releases',
getDisplayVersion: function () {
if (this.version.indexOf(this.gitRevision) === -1) {
return `${this.version} (${this.gitRevision})`;
} else {
return `${this.version}`;
}
},
};