Electron-builder: password with generic provider

Created on 17 Oct 2017  Â·  1Comment  Â·  Source: electron-userland/electron-builder

  • Version: latest
  • Target: nsis

I'm using electron-updater with a "generic" provider. The setup is working well, but I need to secure my web directory and setup file. I'd like to do this via an htaccess login or parameter.

I setup a htaccess parameter and tried setting my url property (in package.json) to www.mydomain.com/mydirectory/latest.yml?param=rightthing. And then setting the path in latest.yml to setup.exe?param=rightthing. That, and a few variations, didn't work.

Can you give me some direction on setting something up to password protect my yml and setup files while still using the generic provider?

Thanks much

question

Most helpful comment

Please set autoUpdater.requestHeaders to your required headers.

About http auth — https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication

>All comments

Please set autoUpdater.requestHeaders to your required headers.

About http auth — https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JohnWeisz picture JohnWeisz  Â·  3Comments

AidanNichol picture AidanNichol  Â·  3Comments

iklemm picture iklemm  Â·  3Comments

NPellet picture NPellet  Â·  3Comments

alexstrat picture alexstrat  Â·  3Comments