You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# if you get an error popup, say ok, and it will probably build fine anyway
39
39
```
40
40
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.)
42
42
43
43
Note: When the app runs you'll get a demo warning from BoxedApp's Packer. Click OK.
44
44
45
45
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.
46
46
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.
48
48
49
49
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.
0 commit comments