Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

165
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda