Closed hcancelik closed 6 months ago
same here
My Mac: Intel Core i9 macOS Monterey (12.6.3)
same here
My Mac: Intel Core i7 macOS Ventura (13.2.1)
have not been able to build a shippable app instance on intel mac yet. dev server works totally fine which is really odd. but with the latest release, the x86 php-bin executable was moved into the folder for the build script to find it. so i am keeping my fingers crossed for the next release.
got the app to build using the following command sequence
cp vendor/nativephp/php-bin/bin/mac/arm64/php vendor/nativephp/php-bin/bin/mac/arm64/php.bak
cp vendor/nativephp/php-bin/bin/mac/x86/php vendor/nativephp/php-bin/bin/mac/arm64/php
php artisan native:build mac
then i installed the app via x64.dmg file and it actually launched the window, set the menu and loaded my UI. Success!
however, interacting with the sqlite db was not possible (forms would not submit) and checking the app logs i am seeing something about the command native:config not existing. which appears to be another open issue: https://github.com/NativePHP/laravel/issues/168
worked around it by manually temporarily by registering the native migrate and config commands in my console kernel
PHP 8.1 solves the issue.
Please update to nativephp/electron v0.6 and try again.
Many issues around builds have been resolved in recent releases.
What happened?
After running
php artisan native:build
I get the following output. No files are generated.How to reproduce the bug
Created a brand new laravel project and required the
nativephp/electron
package.Package Version
0.3.3
PHP Version
8.2.8
Laravel Version
10.17.1
Node Version
18.15.0
Which operating systems does with happen with?
macOS
Notes
No response