Simple http publisher provider for electron
npm i --save-dev electron-publisher-simple-http
electron-userland/electron-builder#3261
{
"build": {
"appId": "someappid",
"productName": "Some app",
"publish": [
{
"provider": "generic",
"url": "https://server.domain:8080/${name}/${os}/${arch}/"
},
"simple-http"
]
},
"build-simple-http": {
"path": "/${name}/${os}/${arch}/",
"hostname": "server.domain",
"protocol": "https",
"port": 8080,
"method": "POST",
"connectionOptions": {
"rejectUnauthorized": false
},
"headers": {
"X-Custom-Header": "header content"
}
}
}
{
"path": "/${name}/${os}/${arch}/",
"hostname": "localhost",
"protocol": "http",
"port": 80,
"//": "or 443 if protocol is set to https",
"method": "POST",
"connectionOptions": {},
"headers": {}
}
https://github.com/zalewskip123/electron-publisher-simple-http-server