question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto-updater with Amazon S3

See original GitHub issue
  • electron-builder v14.5.2
  • electron-updater v1.7.1

I’m having trouble setting the auto update process. I’m publishing my artifact on Amazon S3 correctly (and the auto-generated latest.yml as well). The folders are public.

I followed the wiki on how to implement the Auto-Updater and I see that I have the app-update.yml file in my resources folder, but when I start my application I get the

Checking for update…

message, but then I get no response about if there is an update available or not.

The latest.yml file contains the following fields:

version: 1.0.0
releaseDate: '2017-02-28T10:52:24.778Z'
githubArtifactName: my-Setup-1.0.0.exe
path: my_Setup_1.0.0.exe
sha2: 5a7459ca7bf33808e43803df72961584124ec42d28a2343d1bf62d4006c258e7

while the app-update.yml file in my resources folder contains:

provider: s3
bucket: my_bucket_name
path: path/to/my/files

The package.json looks like this:

...
"win": {
      "icon": "./img/icon.ico",
      "target": [
        "nsis"
      ],
      "publish": {
        "provider": "s3",
        "bucket": "my_bucket_name",
        "path": "path/to/my/files"
      }
    },
    "nsis": {
      "artifactName": "${productName}_Setup_${version}.${ext}",
      "installerIcon": "./img/installer_logo.ico"
    },
...

What am I doing wrong?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:32 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
dkapanidiscommented, Mar 5, 2017

This zip is required for Squirrel.Mac. So, you must use it and it will be uploaded. Sadly, but true.

Gosh, this should be somewhere in the documentation. I’ve been banging my head to find why the latest-mac.json was not published when I removed the zip target.

1reaction
develarcommented, Feb 28, 2017

It generates a zip that I’m not gonna use though.

This zip is required for Squirrel.Mac. So, you must use it and it will be uploaded. Sadly, but true.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Automatic updates in Electron using Amazon S3 - Brainio Blog
It works with the electron-builder package and uses Amazon S3 as an auto update server. The post also shows how to code sign...
Read more >
Use amazon s3 with electron-builder's auto updater [closed]
How can I use electron-builder's auto-update feature with Amazon S3 in my electron app? Maybe someone who has already implemented it, ...
Read more >
Auto Updater does not work for Amazon S3 private Bucket
In your main process all you need to do is import autoUpdater without any config. This way no AWS keys leave your development...
Read more >
S3 - Electron Forge
How to publish your distributable Electron app artifacts to Amazon S3. ... The S3 target publishes your Make artifacts to an Amazon S3...
Read more >
update-electron-s3 - npm.io
Package to apply auto-update for an electron application using s3 amazon service. Powered by the free and open-source update.electronjs.org service.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found