Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Update system version retrieval in error.html to use process.getSystemVersion for better accuracy (#17449)

Jeffrey Chen2e4c49151fc3
diff --git a/app/electron/error.html b/app/electron/error.html
index 6359e20e40..23412cef63 100644
--- a/app/electron/error.html
+++ b/app/electron/error.html
@@ -240,9 +240,10 @@
'win32': 'Windows',
'linux': 'Linux'
}[process.platform] || process.platform;
-
+ const release = typeof process.getSystemVersion === 'function'
+ ? process.getSystemVersion() // Electron 提供,系统版本
+ : os.release(); // Node.js 提供,内核版本
// Windows 系统版本判断
- const release = os.release();
if (process.platform === 'win32') {
const versionParts = release.split('.'); // 10.0.22000
if (versionParts.length >= 3) {