SDA-4473 (Optimize nsis installer script) (#2103)

* SDA-4488 - Remove sleep

* SDA-4473 - Update electron builder and updater and improve performance
This commit is contained in:
Kiran Niranjan 2024-03-04 15:13:55 +05:30 committed by GitHub
parent aea7f6d17e
commit 66c8bc1f0b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 1347 additions and 1984 deletions

View File

@ -46,8 +46,6 @@ FunctionEnd
!macro perUserM
!insertmacro copyLocalGlobalConfig
Call uninstallSymphony
Sleep 10000
SetRegView 64
WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "$LOCALAPPDATA\Programs\Symphony\Symphony"
WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "$LOCALAPPDATA\Programs\Symphony\Symphony"
!macroend
@ -60,8 +58,6 @@ FunctionEnd
${endif}
!insertmacro copySystemGlobalConfig
Call uninstallSymphony
Sleep 10000
SetRegView 64
WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "$PROGRAMFILES64\Symphony\Symphony"
WriteRegExpandStr HKCU "${INSTALL_REGISTRY_KEY}" InstallLocation "$PROGRAMFILES64\Symphony\Symphony"
!macroend

3318
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -179,7 +179,7 @@
"cross-env": "7.0.3",
"del": "3.0.0",
"electron": "^28.2.0",
"electron-builder": "^24.2.1",
"electron-builder": "^24.13.2",
"electron-icon-maker": "0.0.5",
"electron-osx-sign": "^0.6.0",
"enzyme": "^3.11.0",
@ -219,7 +219,7 @@
"electron-dl": "3.5.0",
"electron-fetch": "1.9.1",
"electron-log": "4.4.8",
"electron-updater": "^6.1.3",
"electron-updater": "^6.1.9",
"filesize": "^10.0.6",
"lazy-brush": "^1.0.1",
"lodash.debounce": "^4.0.8",

View File

@ -1,4 +1,4 @@
import { app, crashReporter } from 'electron';
import { app, crashReporter, Menu } from 'electron';
import * as path from 'path';
import { isDevEnv } from '../common/env';
@ -24,6 +24,9 @@ app.enableSandbox();
// https://www.electron.build/configuration/configuration#Configuration-squirrelWindows
app.setAppUserModelId('com.symphony.electron-desktop');
// This will prevent loading default menu and performance of application startup
Menu.setApplicationMenu(null);
// Set user data path before app ready event
if (isDevEnv) {
const devDataPath = path.join(app.getPath('appData'), 'Symphony-dev');