Updated SMTC version

This commit is contained in:
nutty
2026-07-23 12:00:29 +10:00
parent c691076f4b
commit 6795224fea
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -690,19 +690,23 @@ function VersionCheck(requiredVersion, installedVersion) {
// 1. CRITICAL: Major versions must match exactly.
if (iMajor !== rMajor) {
console.log(`VersionCheck: Major version mismatch. Required: ${rMajor}, Installed: ${iMajor}`);
return 'incompatible';
}
// 2. SOFT WARNING: The installed minor version is lower than what is required.
if (iMinor < rMinor) {
console.log(`VersionCheck: Minor version mismatch. Required: ${rMinor}, Installed: ${iMinor}`);
return 'soft-warning';
}
// 3. SOFT WARNING: Minors match, but the installed patch version is lagging.
// 3. SILENT WARNING: Minors match, but the installed patch version is lagging.
if (iMinor === rMinor && iPatch < rPatch) {
return 'soft-warning';
console.log(`VersionCheck: Patch version mismatch. Required: ${rPatch}, Installed: ${iPatch}`);
return 'compatible';
}
// 4. PERFECT: Installed version meets or exceeds the required baseline.
console.log(`VersionCheck: Installed version meets or exceeds the required baseline. Required: ${requiredVersion}, Installed: ${installedVersion}`);
return 'compatible';
}
+1 -1
View File
@@ -9,7 +9,7 @@ const urlParams = new URLSearchParams(queryString);
// CONSTANTS //
////////////////
const REQUIRED_VERSION = '0.0.1';
const REQUIRED_VERSION = '0.0.2';
const SMTC_BRIDGE_DOWNLOAD_URL = 'https://github.com/nuttylmao/smtc-bridge/releases';
///////////////////