From 745483266363f41b14bf704172dc224338744fdf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonathan=20Grotel=C3=BCschen?= Date: Thu, 28 May 2026 05:01:54 +0200 Subject: [PATCH] fix: set RESOURCES_PATH relative to app.getAppPath() (#2064) When running the app with system electron, process.resourcesPath points to the resources folder of the system electron, not the one from feishin. --- src/main/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 => {