mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-10 22:32:17 +02:00
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.
This commit is contained in:
committed by
GitHub
parent
1ed185606d
commit
7454832663
+1
-1
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user