Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 86f3082

Browse files
committed
fix paths
1 parent 37060eb commit 86f3082

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

.github/workflows/build-plugin.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ jobs:
2929
node-version: 22.x
3030

3131
- name: Install dependencies
32-
working-directory: ./resources/js/
32+
working-directory: ./resources/electron/
3333
run: npm install
3434

3535
- name: Build plugin
36-
working-directory: ./resources/js/
36+
working-directory: ./resources/electron/
3737
run: npm run plugin:build
3838

3939
- name: Commit changes

.github/workflows/run-plugin-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
node-version: 22.x
1919

2020
- name: Install dependencies
21-
working-directory: ./resources/js/
21+
working-directory: ./resources/electron/
2222
run: npm install
2323

2424
- name: Run tests
25-
working-directory: ./resources/js/
25+
working-directory: ./resources/electron/
2626
run: npm run plugin:test

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ testbench.yaml
99
vendor
1010
node_modules
1111
.DS_Store
12-
resources/js/*.log
12+
resources/electron/*.log

src/Electron/Commands/BundleCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ private function addFilesToZip(ZipArchive $zip): void
267267
$vendor = (new Finder)->files()
268268
->exclude(array_filter([
269269
'nativephp/php-bin',
270-
'nativephp/electron/resources/js',
270+
'nativephp/electron/resources/electron',
271271
'*/*/vendor', // Exclude sub-vendor directories
272272
$binaryPath,
273273
]))

src/Electron/ElectronServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class ElectronServiceProvider extends PackageServiceProvider
1717
{
18-
const ELECTRON_PATH = __DIR__.'/../../resources/js';
18+
const ELECTRON_PATH = __DIR__.'/../../resources/electron';
1919

2020
public function configurePackage(Package $package): void
2121
{

src/Electron/Traits/ExecuteCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace Native\Electron\Traits;
44

55
use Illuminate\Support\Facades\Process;
6+
use Native\Electron\ElectronServiceProvider;
67

78
use function Laravel\Prompts\note;
89

@@ -32,7 +33,7 @@ protected function executeCommand(
3233

3334
note('Fetching latest dependencies…');
3435

35-
Process::path(__DIR__.'/../../../resources/js/')
36+
Process::path(ElectronServiceProvider::ELECTRON_PATH)
3637
->env($envs[$type])
3738
->forever()
3839
->tty(! $withoutInteraction && PHP_OS_FAMILY != 'Windows')

0 commit comments

Comments
 (0)