Skip to content

Commit cf3adda

Browse files
committed
fix readme issues
1 parent 7f7adec commit cf3adda

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# flappyphpant-nativephp
22

3-
### Testing flappyphpant (PHP-GLFW and the VISU framework) + NativePHP
3+
### Testing flappyphpant (PHP-GLFW and the VISU framework) + NativePHP Electron
44

55
Smushed together with slight modification are:
66

77
* https://github.com/phpgl/flappyphpant
88
* https://github.com/mario-deluna/php-glfw
99
* https://github.com/phpgl/visu
10-
* https://nativephp.com
10+
* https://nativephp.com (Laravel + Electron)
1111

1212
It's a demo OpenGL graphical game, written in PHP.
1313

@@ -22,7 +22,7 @@ To run: run the installer in the latest release
2222
To build:
2323

2424
```bash
25-
git clone https://github.com/tookings/flappyphpant-nativephp.git
25+
git clone https://github.com/wiretail/flappyphpant-nativephp.git
2626
cd flappyphpant-nativephp
2727

2828
composer install
@@ -38,13 +38,13 @@ php artisan native:build
3838
# if you get an error popup, say ok, and it will probably build fine anyway
3939
```
4040

41-
If it worked, the setup executable with be in ./dist/ Run it to install the electron app -- it may be very slow.
41+
If it worked, the installer executable with be in ./dist/flappyphpant-nativephp-1.0.0-setup.exe Run it to install the electron app -- it may be very slow. (And it should still work even with an error/popup during the process.)
4242

4343
Note: When the app runs you'll get a demo warning from BoxedApp's Packer. Click OK.
4444

4545
This is because NativePHP expects a single "php.exe" file in php-bin's PHP zip, and will fail otherwise. Creating a real static build with GLFW included seems like a "fun" larger project, nor can nativephp/electron handle a zip with multiples files. So the PHP instance used here is a normal minimal many-file version that is then packed with trial version of Packer. That is then copied over the /vendor/nativephp/php-bin/bin/win/x64/php-8.3.zip file as a post composer install/update command.
4646

47-
One could fork nativephp/php-bin to add the new zip/eze file, and either actually build it statically, or also fork nativephp/electron and update nativephp\electron\resources\js\php.js to handle multiple files in the zip.
47+
One could fork nativephp/php-bin to add the new zip/exe file, and either actually build it statically, or also fork nativephp/electron and update nativephp\electron\resources\js\php.js to handle multiple files in it's currently hardcoded unzip routine.
4848

4949
It's very much a hack though, so...that's how it works right now. And it'll crash if you minimize the game window.
5050

0 commit comments

Comments
 (0)