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 {