Skip to content

Commit e006bb3

Browse files
committed
fix paths
1 parent f9a0103 commit e006bb3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

resources/js/electron-builder.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export default {
138138
},
139139
extraFiles: [
140140
{
141-
from: join(process.env.APP_PATH, 'nativephp', 'extras'),
141+
from: join(process.env.APP_PATH, 'extras'),
142142
to: 'extras',
143143
filter: [
144144
'**/*'

resources/js/electron-plugin/src/server/php.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ function getDefaultEnvironmentVariables(secret?: string, apiPort?: number): Envi
295295
NATIVEPHP_VIDEOS_PATH: getPath('videos'),
296296
NATIVEPHP_RECENT_PATH: getPath('recent'),
297297
NATIVEPHP_EXTRAS_PATH: app.isPackaged
298-
? join(app.getAppPath(), 'nativephp', 'extras')
299-
: join(app.getAppPath(), '..', '..', 'extras'),
298+
? join(process.resourcesPath, '..', 'extras')
299+
: join(process.env.APP_PATH, 'extras'),
300300
};
301301

302302
// Only if the server has already started

0 commit comments

Comments
 (0)