chore: Upgrade Electron, fix path issue on Windows and downgrade electron-rebuild (#2895)

This commit is contained in:
Aman Harwara
2025-04-22 17:32:50 +05:30
committed by GitHub
parent 405f907c49
commit 429ad395ad
21 changed files with 29 additions and 183 deletions

View File

@@ -6,9 +6,9 @@ import index from '../../../index.html'
function url(fileName: string): string {
if ('APP_RELATIVE_PATH' in process.env) {
return path.join('file://', __dirname, process.env.APP_RELATIVE_PATH as string, fileName)
return 'file://' + path.resolve(__dirname, process.env.APP_RELATIVE_PATH as string, fileName)
}
return path.join('file://', __dirname, fileName)
return 'file://' + path.resolve(__dirname, fileName)
}
function filePath(fileName: string): string {

View File

@@ -43,7 +43,7 @@
"compare-versions": "^6.1.0",
"decrypt": "github:standardnotes/decrypt#master",
"dotenv": "^16.3.1",
"electron": "34.1.1",
"electron": "35.2.0",
"electron-log": "^4.4.8",
"electron-updater": "^6.1.4",
"fs-extra": "^11.1.1",
@@ -55,7 +55,7 @@
"@babel/core": "*",
"@babel/preset-env": "*",
"@electron/notarize": "^3.0.0",
"@electron/rebuild": "3.7.2",
"@electron/rebuild": "3.6.0",
"@types/fs-extra": "^11.0.1",
"@types/lodash": "^4.14.189",
"@types/mime-types": "^2.1.1",