Example?
See original GitHub issueI’m having hard time implementing auto-updates in one of my electron app. I have set it up nuts on heroku successfully and it’s working fine but I don’t know how to implement this in my electron app’s autoupdater api. Adding this in my main.js does nothing-
var app = require('app');
var os = require('os');
var autoUpdater = require('electron').autoUpdater;
var platform = os.platform() + '_' + os.arch(); // usually returns darwin_64
var version = app.getVersion();
autoUpdater.setFeedURL('http://zulipdesktop.herokuapp.com/update/'+platform+'/'+version);
It would be awesome if you someone can point me to a working example.
Issue Analytics
- State:
- Created 7 years ago
- Comments:28
Top Results From Across the Web
Example Definition & Meaning - Merriam-Webster
an instance (such as a problem to be solved) serving to illustrate a rule or precept or to act as an exercise in...
Read more >Example Definition & Meaning - Dictionary.com
a pattern or model, as of something to be imitated or avoided: to set a good example. an instance serving for illustration; a...
Read more >EXAMPLE | definition in the Cambridge English Dictionary
a person or a way of behaving that is considered suitable to be copied: He's a very good example to the rest of...
Read more >example Definitions and Synonyms - Macmillan Dictionary
Definition of EXAMPLE (noun): something that you mention as an explanation; good person or behaviour suitable for copying; phrase in dictionary ...
Read more >Example definition and meaning | Collins English Dictionary
An example of something is a particular situation, object, or person that shows that what is being claimed is true. The doctors gave...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I figured out how to enable and view logging in heroku for when it launches nuts. Turns out there is an issue with connecting to GitHub, although I’m not sure what just yet. The repo I’m connecting to is private. Did either of you run into this issue:
Update: Fixed this issue by changing GITHUB_REPO from the full url path, to just username/repo-name.
To answer my own question… if you navigate to the URL provided by heroku, it should download the latest release of your electron app. It should not say “Application Error”
Try adding:
http://electron.atom.io/docs/api/auto-updater/