arboleya / electrify

Package your Meteor apps with Electron, and butter
MIT License
247 stars 52 forks source link

electrify does not recognize app.asar file as packed application with electron #19

Open ghost opened 8 years ago

ghost commented 8 years ago

when use asar archives option with electron-packager . the application show empty screen until i run meteor by my self in other terminal and show this message:

electrify:plugins:mongodb:  app in development mode, skipping start
electrify:plugins:nodejs:  app in development mode, skipping start
arboleya commented 8 years ago

Hi @alnour-altegani, can you describe your workflow? Did you use electrify + electron-packager?

ghost commented 8 years ago

yes I did . my steps was 1- run meteo (electrify run with it and build the electron app) 2- remove the .electrify/.dist 3- run electron-packager with my options like

// in project root
cd .electrify
electron-packager . todo --platform=linux --arch=ia32 --version=0.33.3 --asar --overwrite

then the build process finish successfully but show empty screen until I run meteor in other tab . the problem is show the above message which means electrify is not running meteor server because it is behave as it in development mode . I found the problem from the source code in the is_package option that make some regex to check if the app directory exist in the resources directory which will run the server and mongo else will not .

arboleya commented 8 years ago

Thanks, I'm gonna check into it as soon as I can.

ghost commented 8 years ago

thank you

arboleya commented 8 years ago

Just an update, the asar archives are read-only, so everything that is currently written inside the app folder will have to be written elsewhere. It's a matter of refactoring every code-block that writes stuff to disk.

arboleya commented 8 years ago

Ok, there are others problems regarding spawning the binaries of MongoDB and NodeJS, which will in this case, be inside the asar file.

I've found a similar case here but doesn't sound to me like a solid way to go.

nicklammertyn commented 8 years ago

@arboleya Any update on asar functionality? If you need any help, just let me know!

ghost commented 8 years ago

thank you every body . but I use simple spa with some db and electron to create my desktop applications

thank you again

cosmin-novac commented 8 years ago

Any update on the asar problem? Windows deployments are really troublesome without it.

jesperstarkar commented 7 years ago

Bump