diff --git a/src/main/index.ts b/src/main/index.ts index 262f00462..65921dc3e 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -335,7 +335,7 @@ if (isDevelopment) { } const RESOURCES_PATH = app.isPackaged - ? path.join(process.resourcesPath, 'assets') + ? path.join(path.dirname(app.getAppPath()), 'assets') : path.join(__dirname, '../../assets'); const getAssetPath = (...paths: string[]): string => {