Skip to content

Instantly share code, notes, and snippets.

@patoui
Created July 21, 2023 13:32
Show Gist options
  • Save patoui/494689db112b11d52a63be34dc538511 to your computer and use it in GitHub Desktop.
Save patoui/494689db112b11d52a63be34dc538511 to your computer and use it in GitHub Desktop.
Script to fix issues when running NativePHP on Linux
#!/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
@antonioanerao
Copy link

Awesome. Thanks :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment