Display M1/Intel in About screen
This commit is contained in:
parent
73c702515b
commit
e60773cdf3
1 changed files with 10 additions and 1 deletions
|
@ -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(),
|
||||
}),
|
||||
|
|
Loading…
Add table
Reference in a new issue