Created
July 21, 2023 13:32
-
-
Save patoui/494689db112b11d52a63be34dc538511 to your computer and use it in GitHub Desktop.
Script to fix issues when running NativePHP on Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# when running `php artisan native:install`, when prompted to start the development server select "no" | |
# copy this file within the root of your project/application and run it `bash nativephp-linux-patch.sh` | |
# after running this script run `php artisan native:serve` | |
sed -i 's/app.dock.setIcon(state_1.default.icon);/\/\/app.dock.setIcon(state_1.default.icon);/g' vendor/nativephp/electron/resources/js/node_modules/nativephp-electron/dist/index.js | |
cp -L /usr/bin/php vendor/nativephp/php-bin/bin/mac/x86/php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome. Thanks :D