Skip to content

Commit d461468

Browse files
authored
Merge branch 'main' into workbench
2 parents 3844f05 + 98a3759 commit d461468

File tree

12 files changed

+38
-17
lines changed

12 files changed

+38
-17
lines changed

.github/workflows/dependabot-auto-merge.yml

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

1414
- name: Dependabot metadata
1515
id: metadata
16-
uses: dependabot/fetch-metadata@v1.6.0
16+
uses: dependabot/fetch-metadata@v2.0.0
1717
with:
1818
github-token: "${{ secrets.GITHUB_TOKEN }}"
1919

.github/workflows/phpstan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
coverage: none
2121

2222
- name: Install composer dependencies
23-
uses: ramsey/composer-install@v2
23+
uses: ramsey/composer-install@v3
2424

2525
- name: Run PHPStan
2626
run: ./vendor/bin/phpstan --error-format=github

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,29 @@
22

33
All notable changes to `nativephp-laravel` will be documented in this file.
44

5+
## 0.5.0 - 2024-04-01
6+
7+
### What's Changed
8+
9+
* Laravel 11 support by @meliani in https://github.com/NativePHP/electron/pull/89
10+
* Allow compiling packages in a CI environment by @danjohnson95 in https://github.com/NativePHP/electron/pull/74
11+
* Upload to GitHub Releases by @danjohnson95 in https://github.com/NativePHP/electron/pull/75
12+
* Windows flag for electron builder. by @A3Brothers in https://github.com/NativePHP/electron/pull/77
13+
* Automate platform detection by @kpanuragh in https://github.com/NativePHP/electron/pull/52
14+
* Fix broken links in README by @danjohnson95 in https://github.com/NativePHP/electron/pull/73
15+
* Bump actions/checkout from 3 to 4 by @dependabot in https://github.com/NativePHP/electron/pull/78
16+
* Bump stefanzweifel/git-auto-commit-action from 4 to 5 by @dependabot in https://github.com/NativePHP/electron/pull/80
17+
* Bump aglipanci/laravel-pint-action from 2.3.0 to 2.3.1 by @dependabot in https://github.com/NativePHP/electron/pull/82
18+
19+
### New Contributors
20+
21+
* @danjohnson95 made their first contribution in https://github.com/NativePHP/electron/pull/75
22+
* @A3Brothers made their first contribution in https://github.com/NativePHP/electron/pull/77
23+
* @kpanuragh made their first contribution in https://github.com/NativePHP/electron/pull/52
24+
* @meliani made their first contribution in https://github.com/NativePHP/electron/pull/89
25+
26+
**Full Changelog**: https://github.com/NativePHP/electron/compare/0.4.0...0.5.0
27+
528
## 0.4.0 - 2023-08-09
629

730
### What's Changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": "^8.1",
20-
"illuminate/contracts": "^10.0",
20+
"illuminate/contracts": "^10.0|^11.0",
2121
"laravel/prompts": "^0.1.1",
2222
"nativephp/laravel": "*",
2323
"nativephp/php-bin": "*",

resources/js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"build:all": "cross-env npm run build:mac && cross-env npm run build:win && cross-env npm run build:linux",
2222
"build:win": "cross-env node php.js --win && cross-env npm run build && cross-env node ./node_modules/electron-builder/cli.js -p never --win --config",
2323
"build:mac": "cross-env npm run build:mac-arm && cross-env npm run build:mac-x86",
24-
"build:mac-arm": "cross-env node php.js --arm64 && cross-env npm run build && cross-envnode ./node_modules/electron-builder/cli.js -p never --mac --config --arm64",
24+
"build:mac-arm": "cross-env node php.js --arm64 && cross-env npm run build && cross-env node ./node_modules/electron-builder/cli.js -p never --mac --config --arm64",
2525
"build:mac-x86": "cross-env node php.js --x64 && cross-env npm run build && cross-env node ./node_modules/electron-builder/cli.js -p never --mac --config --x64",
2626
"build:linux": "cross-env npm run build:linux-x64",
2727
"build:linux-x64": "cross-env node php.js --linux && cross-env npm run build && cross-env node ./node_modules/electron-builder/cli.js -p never --linux --config --x64"

src/Commands/BuildCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class BuildCommand extends Command
1414

1515
protected $signature = 'native:build {os=all : The operating system to build for (all, linux, mac, windows)}';
1616

17-
public function handle()
17+
public function handle(): void
1818
{
1919
$this->info('Build NativePHP app…');
2020

@@ -37,7 +37,7 @@ public function handle()
3737
});
3838
}
3939

40-
protected function getEnvironmentVariables()
40+
protected function getEnvironmentVariables(): array
4141
{
4242
return array_merge(
4343
[

src/Commands/DevelopCommand.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class DevelopCommand extends Command
1515

1616
protected $signature = 'native:serve {--no-queue} {--D|no-dependencies} {--installer=npm}';
1717

18-
public function handle()
18+
public function handle(): void
1919
{
2020
intro('Starting NativePHP dev server…');
2121

@@ -41,10 +41,8 @@ public function handle()
4141
/**
4242
* Patch Electron's Info.plist to show the correct app name
4343
* during development.
44-
*
45-
* @return void
4644
*/
47-
protected function patchPlist()
45+
protected function patchPlist(): void
4846
{
4947
$pList = file_get_contents(__DIR__.'/../../resources/js/node_modules/electron/dist/Electron.app/Contents/Info.plist');
5048

src/Commands/PublishCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class PublishCommand extends Command
1414

1515
protected $signature = 'native:publish {os=mac}';
1616

17-
public function handle()
17+
public function handle(): void
1818
{
1919
$this->info('Building and publishing NativePHP app…');
2020

@@ -39,7 +39,7 @@ public function handle()
3939
});
4040
}
4141

42-
protected function getEnvironmentVariables()
42+
protected function getEnvironmentVariables(): array
4343
{
4444
return array_merge(
4545
[

src/Commands/QueueWorkerCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class QueueWorkerCommand extends Command
1212
{
1313
protected $signature = 'native:queue {--port=4000}';
1414

15-
protected function getAppDirectory()
15+
protected function getAppDirectory(): string|false
1616
{
1717
$appName = Str::slug(config('app.name'));
1818

@@ -27,7 +27,7 @@ protected function getAppDirectory()
2727
return realpath($basePath.'/'.$appName);
2828
}
2929

30-
public function handle()
30+
public function handle(): void
3131
{
3232
intro('Starting NativePHP queue worker…');
3333

src/ElectronServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function configurePackage(Package $package): void
2727
]);
2828
}
2929

30-
public function packageRegistered()
30+
public function packageRegistered(): void
3131
{
3232
$this->app->singleton('nativephp.updater', function ($app) {
3333
return new UpdaterManager($app);

0 commit comments

Comments
 (0)