aj-techsoul / ELECTRON-4-PHP

An easiest way to use php in electron
MIT License
202 stars 46 forks source link

Building Application #24

Closed successful-fella closed 3 years ago

successful-fella commented 3 years ago

Hello,

Such a nice initiative, I really like the idea!

I used electron-builder to pack the electron app. From CLI it was working, but after packing, it just shows blank white screen. Following are the steps to reproduce the problem -

I think I'm doing something wrong or is it just that electron-builder won't pack this properly? As for you, what do you use to pack the application?

successful-fella commented 3 years ago

Wanted to add that it shows blank without changing main.js and adding src folder too. Using CLI it shows php version page as expected though.

iamtomc commented 3 years ago

Hi Successful-Fella, please how did you solve the issue, were you able to successfull bundle a working php application.

successful-fella commented 3 years ago

@brandsafric Ah sorry. I bundled it by running npm run package-win which ran electron-packager (see package.json file). Previously it didn't properly pack and the reason was unclear. That's why I closed the issue without describing.