Skip to content

Commit ef114f3

Browse files
authored
remove storage:link (#232)
1 parent 80b499f commit ef114f3

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

.github/workflows/build-plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636

3737
- name: Commit changes
3838
if: github.event_name == 'pull_request'
39-
uses: stefanzweifel/git-auto-commit-action@v6
39+
uses: stefanzweifel/git-auto-commit-action@v5
4040
with:
4141
commit_message: Build plugin
4242

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,10 +208,6 @@ function serveApp(secret, apiPort, phpIniSettings) {
208208
const store = new Store({
209209
name: 'nativephp',
210210
});
211-
if (!runningSecureBuild()) {
212-
console.log('Linking storage path...');
213-
callPhp(['artisan', 'storage:link', '--force'], phpOptions, phpIniSettings);
214-
}
215211
if (shouldOptimize(store)) {
216212
console.log('Caching view and routes...');
217213
let result = callPhpSync(['artisan', 'optimize'], phpOptions, phpIniSettings);

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

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -311,18 +311,6 @@ function serveApp(secret, apiPort, phpIniSettings): Promise<ProcessResult> {
311311
name: 'nativephp', // So it doesn't conflict with settings of the app
312312
});
313313

314-
// Make sure the storage path is linked - as people can move the app around, we
315-
// need to run this every time the app starts
316-
if (!runningSecureBuild()) {
317-
/*
318-
* Simon: Note for later that we should strip out using storage:link
319-
* all of the necessary files for the app to function should be a part of the bundle
320-
* (whether it's a secured bundle or not), so symlinking feels redundant
321-
*/
322-
console.log('Linking storage path...');
323-
callPhp(['artisan', 'storage:link', '--force'], phpOptions, phpIniSettings)
324-
}
325-
326314
// Cache the project
327315
if (shouldOptimize(store)) {
328316
console.log('Caching view and routes...');

0 commit comments

Comments
 (0)