Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to download and install desktop app updates? #7

Closed
ccorcos opened this issue Oct 5, 2022 · 2 comments
Closed

How to download and install desktop app updates? #7

ccorcos opened this issue Oct 5, 2022 · 2 comments
Labels
question Further information is requested

Comments

@ccorcos
Copy link

ccorcos commented Oct 5, 2022

Any advice on how to download and install app updates on desktop?

@jwerle jwerle added the question Further information is requested label Oct 6, 2022
@heapwolf
Copy link
Member

heapwolf commented Oct 8, 2022

Apple and Google will allow you to do self-updates that don't violate the user's expectations, so small updates to javascript and html, etc. are fine, you can pull those down yourself with a server or p2p and just write them into window.process.cwd().

For updates of socket itself, it depends on what your goals are. But the easiest way is using the official channels (google play, apple store, etc), because it happens securely, everything is signed and notarized, the user gets batched updates with all their other software, etc etc.

Another way is to ping your own api (or receive a p2p message) and get the update, install it into place, tell the user there is an update and when they start the app again it will be updated.

@ccorcos
Copy link
Author

ccorcos commented Oct 12, 2022

But the easiest way is using the official channels (google play, apple store, etc), because it happens securely, everything is signed and notarized, the user gets batched updates with all their other software, etc etc.

Yeah, so many apps don't do this though which makes me skeptical. I've heard so many problems about the Mac App Store. Sketch, Figma, Notion... so many apps aren't using the Mac App Store.

Sounds like a simple solution though. I didn't realize I can swap out the binary while the app is running, but it makes sense that would be loaded into memory. I'll try that out.

@ccorcos ccorcos closed this as completed Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants