Skip to content

Commit ba36ca0

Browse files
authored
fix: Please provide a valid cache path. (#205)
1 parent 4408d39 commit ba36ca0

File tree

2 files changed

+10
-0
lines changed
  • resources/js/electron-plugin

2 files changed

+10
-0
lines changed

resources/js/electron-plugin/dist/server/php.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ const bootstrapCache = join(app.getPath('userData'), 'bootstrap', 'cache');
2424
const argumentEnv = getArgumentEnv();
2525
const appPath = getAppPath();
2626
mkdirpSync(bootstrapCache);
27+
mkdirpSync(join(storagePath, 'logs'));
28+
mkdirpSync(join(storagePath, 'framework', 'cache'));
29+
mkdirpSync(join(storagePath, 'framework', 'sessions'));
30+
mkdirpSync(join(storagePath, 'framework', 'views'));
31+
mkdirpSync(join(storagePath, 'framework', 'testing'));
2732
function runningSecureBuild() {
2833
return existsSync(join(appPath, 'build', '__nativephp_app_bundle'))
2934
&& process.env.NODE_ENV !== 'development';

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ const argumentEnv = getArgumentEnv();
2121
const appPath = getAppPath();
2222

2323
mkdirpSync(bootstrapCache);
24+
mkdirpSync(join(storagePath, 'logs'));
25+
mkdirpSync(join(storagePath, 'framework', 'cache'));
26+
mkdirpSync(join(storagePath, 'framework', 'sessions'));
27+
mkdirpSync(join(storagePath, 'framework', 'views'));
28+
mkdirpSync(join(storagePath, 'framework', 'testing'));
2429

2530
function runningSecureBuild() {
2631
return existsSync(join(appPath, 'build', '__nativephp_app_bundle'))

0 commit comments

Comments
 (0)