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.

Autoupdater fails on MacOS X

See original GitHub issue
  • Version: 3.0.3
  • Electron updater: 3.1.2
  • Target: mas

Updated to the latest version of Electron. Everything build and publishing good. We are using amazon s3 provider. Files are available. But when i’m trying to update an application (it downloads it but can’t install) - getting following error: Error: The resource could not be loaded because the App Transport Security policy requires the use of a secure connection. at /Applications/Our.app/Contents/Resources/app.asar/node_modules/graceful-fs/polyfills.js:287:18 at FSReqWrap.oncomplete (fs.js:183:5) From previous event: at Object.done (/Applications/Our.app/Contents/Resources/app.asar/node_modules/electron-updater/src/MacUpdater.ts:46:11) at /Applications/Our.app/Contents/Resources/app.asar/node_modules/electron-updater/src/AppUpdater.ts:530:25 at Generator.next (<anonymous>) at runCallback (timers.js:696:18) at tryOnImmediate (timers.js:667:5) at processImmediate (timers.js:649:5) at process.topLevelDomainCallback (domain.js:121:23)

It was OK on version 1.8.* but i can’t migrate to 3.0.3 because of that issue. What can i do with it? Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:32 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
develarcommented, Dec 11, 2018

@aguynamedben Thanks for donation, electron-builder 20.38.3 is released. https://github.com/electron-userland/electron-builder/commit/930dc8d

3reactions
alexdrimbecommented, Dec 4, 2018

Please never use "NSAllowsArbitraryLoads": true. electron-builder 20.33.0 adds localhost to NSExceptionDomains by default now, so, you don’t need it at all. But if you want to be really sure, you can set "NSAllowsLocalNetworking": true (but please, please test without it, to ensure that electron-builder default configuration is valid).

According to Apple documentation (https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CocoaKeys.html#//apple_ref/doc/uid/TP40009251-SW35) NSAllowsLocalNetworking is not available for macOS 10.12 and older.

The workaround for Supporting Older Operating Systems: Version-specific ATS behavior: In a current operating system, the presence of a fine-grained transport security key (NSAllowsArbitraryLoadsForMedia, NSAllowsArbitraryLoadsInWebContent, or NSAllowsLocalNetworking) overrides the value of the NSAllowsArbitraryLoads key to NO. This allows you to set NSAllowsArbitraryLoads to YES if needed for your app in older operating systems, without disabling ATS generally in current operating systems.

Read more comments on GitHub >

github_iconTop Results From Across the Web

autoUpdater.quitAndInstall fails to relaunch on Mac OS 11 Big ...
Mac requires that any MacOS app using auto-update is code-signed, and I can't figure out how to build Squirrel from source successfully so...
Read more >
AutoUpdate for Mac is not working - Microsoft Tech Community
The Microsoft AutoUpdate app for macos keeps bouncing on my Mac but does not work. The only option to get out of the...
Read more >
How to Fix Microsoft Office AutoUpdate for Mac not working
Launch any of the Office apps, then click Help > Check for Updates, then click Install. updating. That's it! You should now be...
Read more >
Microsoft AutoUpdate in Mac OS v4.35 Update Error
If you are seeing the Update Error (updates are temporarily unavailable) message in Microsoft AutoUpdate v4.35.21051700, you are not alone!
Read more >
How to Stop Microsoft AutoUpdate on Mac
However, you won't find Microsoft AutoUpdate within the Launchpad or Applications folder in macOS or OS X. Instead, you must access it ...
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