Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
Electron builder - publish to local artifactory, and add requestheaders for authentication

I'm trying to understand the Docs regarding custom publishing in electron builder, i have a local artifactory server with authentication, so what i understand so far that when using this option it will automatically upload the newly created artifact to the URL pointed assuming using release, but i also need to be an authentic user in order to upload, i tried adding requestheaders for authentication but i get the following error package.json

`
"publish": {
 "provider": "generic",
 "url": "example.com/aa/bb",
 "requestHeaders":{ "Authorization:":"Basic KEY" }
 }
`

as soon as i try to do this i get this error

  • configuration.publish.requestHeaders has an unknown property 'Authorization'. These properties are valid: object {}

Any help appreciated

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Seems to be the same as this issue in Electron-Builder.

As a workaround, you can try to set the basic credentials in the URL itself:

"publish": {
 "provider": "generic",
 "url": "myuser:mypass@example.com/aa/bb"
 }

(see RFC-1738)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!