diff --git a/app/frontend/src/Settings/About.js b/app/frontend/src/Settings/About.js index d1e4b03f..98b8beff 100644 --- a/app/frontend/src/Settings/About.js +++ b/app/frontend/src/Settings/About.js @@ -18,6 +18,7 @@ const aboutFields = [ [ 'databaseVersion', 'Shabad OS Database Version' ], [ 'hostname', 'Shabad OS Host' ], [ 'platform', 'Platform' ], + [ 'release', 'Release' ], [ 'arch', 'Architecture' ], [ 'cpus', 'CPU(s)' ], ] diff --git a/app/lib/analytics.js b/app/lib/analytics.js index f72ec404..5c6082d9 100644 --- a/app/lib/analytics.js +++ b/app/lib/analytics.js @@ -5,7 +5,7 @@ /* eslint-disable class-methods-use-this */ import * as Sentry from '@sentry/node' -import { cpus, freemem, totalmem, platform, networkInterfaces } from 'os' +import { cpus, freemem, totalmem, platform, release, networkInterfaces } from 'os' import { version } from '../package.json' @@ -51,6 +51,7 @@ class Analytics { freeMemory: freemem(), totalMemory: totalmem(), platform: platform(), + release: release(), networkInterfaces: networkInterfaces(), } ) diff --git a/app/lib/api.js b/app/lib/api.js index ccfac884..993f31eb 100644 --- a/app/lib/api.js +++ b/app/lib/api.js @@ -1,6 +1,6 @@ import { Router } from 'express' import { basename, join } from 'path' -import { hostname, platform, arch, cpus } from 'os' +import { hostname, platform, release, arch, cpus } from 'os' import { readJSON } from 'fs-extra' import { CUSTOM_THEMES_FOLDER, APP_FOLDER, FRONTEND_THEMES_FOLDER, DATABASE_FOLDER, CUSTOM_OVERLAY_THEMES_FOLDER, FRONTEND_OVERLAY_THEMES_FOLDER } from './consts' @@ -33,6 +33,7 @@ api.get( '/about', ( _, res ) => Promise.all( [ arch: arch(), cpus: `${cpus().length}x ${cpus()[ 0 ].model}`, platform: platform(), + release: release(), addresses: getNetworkedAddresses(), } ) ) )