From e60773cdf33bf7529e241d7907f27618f29a7a9b Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Tue, 14 Dec 2021 00:04:29 +0100 Subject: [PATCH] Display M1/Intel in About screen --- ts/windows/about/preload.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ts/windows/about/preload.ts b/ts/windows/about/preload.ts index cfa88fd2a4..617d84bfb1 100644 --- a/ts/windows/about/preload.ts +++ b/ts/windows/about/preload.ts @@ -18,10 +18,19 @@ contextBridge.exposeInMainWorld('SignalContext', { environmentText.push(appInstance); } + let platform = ''; + if (process.platform === 'darwin') { + if (process.arch === 'arm64') { + platform = ' (M1)'; + } else { + platform = ' (Intel)'; + } + } + ReactDOM.render( React.createElement(About, { closeAbout: () => ipcRenderer.send('close-about'), - environment: environmentText.join(' - '), + environment: `${environmentText.join(' - ')}${platform}`, i18n: SignalContext.i18n, version: SignalContext.getVersion(), }),