Display M1/Intel in About screen
This commit is contained in:
@@ -18,10 +18,19 @@ contextBridge.exposeInMainWorld('SignalContext', {
|
|||||||
environmentText.push(appInstance);
|
environmentText.push(appInstance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let platform = '';
|
||||||
|
if (process.platform === 'darwin') {
|
||||||
|
if (process.arch === 'arm64') {
|
||||||
|
platform = ' (M1)';
|
||||||
|
} else {
|
||||||
|
platform = ' (Intel)';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
React.createElement(About, {
|
React.createElement(About, {
|
||||||
closeAbout: () => ipcRenderer.send('close-about'),
|
closeAbout: () => ipcRenderer.send('close-about'),
|
||||||
environment: environmentText.join(' - '),
|
environment: `${environmentText.join(' - ')}${platform}`,
|
||||||
i18n: SignalContext.i18n,
|
i18n: SignalContext.i18n,
|
||||||
version: SignalContext.getVersion(),
|
version: SignalContext.getVersion(),
|
||||||
}),
|
}),
|
||||||
|
Reference in New Issue
Block a user