mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
update version data
This commit is contained in:
@@ -116,8 +116,8 @@ let system_status = {
|
|||||||
let DEV_VERSION_IS_UPGRADEABLE: boolean;
|
let DEV_VERSION_IS_UPGRADEABLE: boolean;
|
||||||
let STABLE_VERSION_IS_UPGRADEABLE: boolean;
|
let STABLE_VERSION_IS_UPGRADEABLE: boolean;
|
||||||
let THIS_VERSION: string;
|
let THIS_VERSION: string;
|
||||||
let LATEST_STABLE_VERSION = '3.7.2';
|
let LATEST_STABLE_VERSION = '3.7.3';
|
||||||
let LATEST_DEV_VERSION = '3.7.3-dev.6';
|
let LATEST_DEV_VERSION = '3.7.4-dev.2';
|
||||||
|
|
||||||
// scenarios for testing versioning
|
// scenarios for testing versioning
|
||||||
let version_test = 0; // on latest stable, or switch to dev
|
let version_test = 0; // on latest stable, or switch to dev
|
||||||
@@ -142,19 +142,19 @@ switch (version_test as number) {
|
|||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
// upgrade an older stable to latest stable or switch to latest dev
|
// upgrade an older stable to latest stable or switch to latest dev
|
||||||
THIS_VERSION = '3.6.5';
|
THIS_VERSION = '3.7.2';
|
||||||
STABLE_VERSION_IS_UPGRADEABLE = true;
|
STABLE_VERSION_IS_UPGRADEABLE = true;
|
||||||
DEV_VERSION_IS_UPGRADEABLE = true;
|
DEV_VERSION_IS_UPGRADEABLE = true;
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
// upgrade dev to latest, or switch to stable
|
// upgrade dev to latest, or switch to stable
|
||||||
THIS_VERSION = '3.7.3-dev.2';
|
THIS_VERSION = '3.7.4-dev.3';
|
||||||
STABLE_VERSION_IS_UPGRADEABLE = false;
|
STABLE_VERSION_IS_UPGRADEABLE = false;
|
||||||
DEV_VERSION_IS_UPGRADEABLE = true;
|
DEV_VERSION_IS_UPGRADEABLE = true;
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
// downgrade to an older dev, or switch back to stable
|
// downgrade to an older dev, or switch back to stable
|
||||||
THIS_VERSION = '3.7.3-dev.9';
|
THIS_VERSION = '3.7.3-dev.1';
|
||||||
STABLE_VERSION_IS_UPGRADEABLE = true;
|
STABLE_VERSION_IS_UPGRADEABLE = true;
|
||||||
DEV_VERSION_IS_UPGRADEABLE = false;
|
DEV_VERSION_IS_UPGRADEABLE = false;
|
||||||
break;
|
break;
|
||||||
@@ -276,10 +276,10 @@ function updateMask(entity: any, de: any, dd: any) {
|
|||||||
const old_custom_name = dd.nodes[dd_objIndex].cn;
|
const old_custom_name = dd.nodes[dd_objIndex].cn;
|
||||||
console.log(
|
console.log(
|
||||||
'comparing names, old (' +
|
'comparing names, old (' +
|
||||||
old_custom_name +
|
old_custom_name +
|
||||||
') with new (' +
|
') with new (' +
|
||||||
new_custom_name +
|
new_custom_name +
|
||||||
')'
|
')'
|
||||||
);
|
);
|
||||||
if (old_custom_name !== new_custom_name) {
|
if (old_custom_name !== new_custom_name) {
|
||||||
changed = true;
|
changed = true;
|
||||||
@@ -375,15 +375,15 @@ function check_upgrade(version: string) {
|
|||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
'Upgrade this version (' +
|
'Upgrade this version (' +
|
||||||
THIS_VERSION +
|
THIS_VERSION +
|
||||||
') to dev (' +
|
') to dev (' +
|
||||||
dev_version +
|
dev_version +
|
||||||
') is ' +
|
') is ' +
|
||||||
(DEV_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO') +
|
(DEV_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO') +
|
||||||
' and to stable (' +
|
' and to stable (' +
|
||||||
stable_version +
|
stable_version +
|
||||||
') is ' +
|
') is ' +
|
||||||
(STABLE_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO')
|
(STABLE_VERSION_IS_UPGRADEABLE ? 'YES' : 'NO')
|
||||||
);
|
);
|
||||||
data = {
|
data = {
|
||||||
emsesp_version: THIS_VERSION,
|
emsesp_version: THIS_VERSION,
|
||||||
|
|||||||
Reference in New Issue
Block a user