code-push icon indicating copy to clipboard operation
code-push copied to clipboard

Electron support

Open mhagmajer opened this issue 10 years ago • 27 comments

I'd like to do code-push updates for Electron. What would be the best way to go about that?

mhagmajer avatar Mar 26 '16 09:03 mhagmajer

I don't know much about Electron, but I suspect we would need to create an implementation of our client SDK for it. It something that we've talked about before and would be very interested to help with if the community was interested enough.

lostintangent avatar Mar 26 '16 19:03 lostintangent

Is this still something that folks would be interested in seeing?

lostintangent avatar May 06 '16 22:05 lostintangent

Awesome! It isn't currently on our roadmap, but I'm really excited to get this going, and help as much as possible :) If you're planning to kick-start this, do you think it makes sense for us to close this issue, since it isn't immediately actionable on our side? I would definitely want to treat the Electron SDK as a first-class citizen, and make sure it gets the right visibility, so we could make sure to link to the repo/docs once available.

lostintangent avatar May 07 '16 00:05 lostintangent

Sure. Feel free to close the issue and let's resume the discussion on a PR once its out there. Thanks!

On Sat, May 7, 2016, 02:13 Jonathan Carter [email protected] wrote:

Awesome! It isn't currently on our roadmap, but I'm really excited to get this going, and help as much as possible :) If you're planning to kick-start this, do you think it makes sense for us to close this issue, since it isn't immediately actionable on our side? I would definitely want to treat the Electron SDK as a first-class citizen, and make sure it gets the right visibility, so we could make sure to link to the repo/docs once available.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/Microsoft/code-push/issues/190#issuecomment-217591373

mhagmajer avatar May 07 '16 00:05 mhagmajer

@mhagmajer Sounds good. Thanks!

lostintangent avatar May 07 '16 00:05 lostintangent

@lostintangent I'm going to try to leverage this first http://electron.atom.io/docs/api/auto-updater/ . An interesting thing about electron is that it runs JavaScript both on the host and client side of the application. This is contrary to React Native which of course runs Java / ObjectiveC code on Android, iOS respectively.

mhagmajer avatar May 13 '16 14:05 mhagmajer

The existence of the auto-updater API is what has prevented us from prioritizing adding Electron support to CodePush. I think our feature set is still really compelling, but I want to make sure it's valuable enough before moving forward. For now, I think we're assuming that folks can get by with the Electron auto-updater and an open source server solution, but I'm interested to hear more if CodePush support for Electron would make sense.

lostintangent avatar May 13 '16 14:05 lostintangent

@lostintangent yes it would make sense.

Electron auto-updater still requires you to configure your own server...

PierBover avatar Aug 27 '16 20:08 PierBover

I agree, I played with this a little bit and would much prefer to have CodePush there instead. The caveat is being able to push code for both renderer (web browser) and main (node.js). Both would require restarting the app after restart.

mhagmajer avatar Aug 29 '16 10:08 mhagmajer

Both would require restarting the app after restart.

I'd rather make my users deal with that (which is almost a standard at least in OSX) than having to deal with Squirrel.

PierBover avatar Aug 29 '16 14:08 PierBover

Please, reopen this. We need electron support asap.

dovy avatar Sep 06 '16 03:09 dovy

We've been struggling for days to implement Squirrel on Electron and still haven't finished.

CodePush for Electron would be the best thing since sliced bread.

PierBover avatar Sep 08 '16 04:09 PierBover

So... how can we help to implement this?

dovy avatar Sep 08 '16 17:09 dovy

Probably the only thing the community could do is to work on a plugin for electron, but without an effort from the CodePush team to implement stuff on the CLI and the server it would be useless.

PierBover avatar Sep 08 '16 17:09 PierBover

:(

dovy avatar Sep 08 '16 17:09 dovy

Hi guys, I noticed the recent activity on this thread and just want to say that our CodePush team is mainly focusing on the mobile experience at the moment so Electron is not on our priority. Having said this, we are monitoring the adoption of Electron and this may become important sometime in the future but just not yet. Thank you for the feedback.

piyushjo avatar Sep 08 '16 17:09 piyushjo

Thanks for the answer @piyushjo

PierBover avatar Sep 08 '16 17:09 PierBover

Disappointing.

dovy avatar Sep 08 '16 17:09 dovy

@piyushjo wondering if you guys changed your mind regarding Electron support?

CodePush for electron would be killer feature. More and more companies are starting adopt Electron due to hybrid nature of it for cost savings reasons.

okonon avatar Sep 15 '17 17:09 okonon

Like @piyushjo said Electron is more popular every day, but as of today there are no good solutions for updating an Electron app.

Squirrel is what the Electron team still recommends. It does the job on macOS but the server side implementation is up to each developer. On Windows it's not a great solution to the point that electron-builder, the most important project for packaging an Electron app, is moving away to NSIS.

If CodePush implemented the whole solution from server to client like it did with Cordova, I and many others would gladly pay for it to move away from Squirrel.

PierBover avatar Sep 15 '17 18:09 PierBover