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.

Unable to publish when setting endpoint url to CloudFront

See original GitHub issue
  • Version: 19.49.0
  • electron-updater version: 2.17.6

We have this app that we’re about to distribute globally using S3 + CloudFront.

S3 is setup correctly and I can publish as usual using build --mac --win -p always, but if I set the publish.endpoint option to the CloudFront URL (e.g. https://d3tpy77yecs5fp.cloudfront.net) it fails with:

Error: Cannot Cleanup [...] XMLParserError: Unexpected close tag

Is S3 + CloudFront supported? Do I need to use setFeedURL?

Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
shadow-lightcommented, Nov 24, 2020

You can set the publish config as S3 in package.json but then in your Electron script overwrite the config with a generic one for your cloudfront:

autoUpdater.setFeedURL({
    provider: 'generic',
    url: 'https://anydomain.com/',
})
autoUpdater.checkForUpdatesAndNotify()
1reaction
develarcommented, Apr 24, 2018

@bithavoc You can set 2 publish providers, first one will be used for electron-updater, all will be used to publish (so, as you said, just use GenericServerOptions for CouldFront).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting distribution issues - Amazon CloudFront
Make sure that the URL that you're referencing uses the domain name (or CNAME) of your CloudFront distribution, not your Amazon S3 bucket...
Read more >
Exposing HTTP API Gateway Via AWS CloudFront - SkildOps
We need to create a Web distribution so make sure to select the appropriate delivery method. Section: Origin Settings. For Origin Domain Name, ......
Read more >
Configuring Vault Digital Publishing - PromoMats & MedComms
Your S3 buckets will need to be properly set up in order to allow Vault access. Setting Up Amazon S3 Buckets & Cloudfront....
Read more >
How to Set up an Amazon CloudFront Distribution ... - YouTube
How to Set up an Amazon CloudFront Distribution for Your Amazon S3 Origin. Watch later. Share. Copy link. Info. Shopping. Tap to unmute....
Read more >
Deploying create-react-app to S3 and CloudFront
Deploy to CloudFront · Select the CloudFront service in the AWS console, click Create Distribution , then under the web delivery method, click...
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 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