mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-24 18:00:28 -06:00
ELECTRON-1070: let electron handle protocol registration (#568)
* ELECTRON-1070: add default protocol client code for windows * ELECTRON-1070: add comments * bump up version number
This commit is contained in:
parent
4943db6d13
commit
c9c38605c5
@ -49,6 +49,10 @@ require('./mainApiMgr.js');
|
||||
// monitor memory of main process
|
||||
require('./memoryMonitor.js');
|
||||
|
||||
// adds 'symphony' as a protocol in the system.
|
||||
// plist file in macOS and registry entries on windows
|
||||
app.setAsDefaultProtocolClient('symphony');
|
||||
|
||||
const windowMgr = require('./windowMgr.js');
|
||||
const { ContextMenuBuilder } = require('electron-spellchecker');
|
||||
const i18n = require('./translation/i18n');
|
||||
@ -225,12 +229,7 @@ app.on('activate', function () {
|
||||
}
|
||||
});
|
||||
|
||||
// adds 'symphony' as a protocol in the system. plist file in macOS
|
||||
|
||||
// on windows, we create the protocol handler via the installer
|
||||
// because electron leaves registry traces upon uninstallation
|
||||
if (isMac) {
|
||||
app.setAsDefaultProtocolClient('symphony');
|
||||
// Sets application version info that will be displayed in about app panel
|
||||
app.setAboutPanelOptions({ applicationVersion: `${clientVersion}-${version}`, version: buildNumber });
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Symphony",
|
||||
"productName": "Symphony",
|
||||
"version": "4.4.1",
|
||||
"version": "4.4.2",
|
||||
"clientVersion": "1.54",
|
||||
"buildNumber": "0",
|
||||
"description": "Symphony desktop app (Foundation ODP)",
|
||||
|
Loading…
Reference in New Issue
Block a user