Building the application using php artisan native:build win on an M2 based Mac system.
What happened?
The build fails when/after trying to copy the app to the dist folder.
With the following output:
Copied app to resources
/myapp/dist
/bin/sh: /myapp/vendor/nativephp/electron/resources/js/resources/php/php: No such file or directory
Error copying app to resources
How to reproduce the bug
Attempt the build command for windows on an M2 Mac.
Package Versions
0.6.3
PHP Version
8.3.7
Laravel Version
10.48.12
Node Version
21.7.3
Which operating systems have you seen this occur on?
macOS
OS version
macOS 14.4.1
Notes
I was previously able to compile targeting x64 specifically on this same machine in a previous (but unsupported for windows) version of NativePHP.
I suspect this is because it's attempting to use the php binary for mac but instead only finds the php.exe binary for windows.
What were you trying to do?
Building the application using
php artisan native:build win
on an M2 based Mac system.What happened?
The build fails when/after trying to copy the app to the dist folder. With the following output:
Copied app to resources /myapp/dist /bin/sh: /myapp/vendor/nativephp/electron/resources/js/resources/php/php: No such file or directory Error copying app to resources
How to reproduce the bug
Attempt the build command for windows on an M2 Mac.
Package Versions
0.6.3
PHP Version
8.3.7
Laravel Version
10.48.12
Node Version
21.7.3
Which operating systems have you seen this occur on?
macOS
OS version
macOS 14.4.1
Notes
I was previously able to compile targeting x64 specifically on this same machine in a previous (but unsupported for windows) version of NativePHP.
I suspect this is because it's attempting to use the php binary for mac but instead only finds the php.exe binary for windows.