chengjingfeng / electron-publisher-simple-http

Simple http publisher provider for electron

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

electron-publisher-simple-http

Simple http publisher provider for electron

Installation:

npm i --save-dev electron-publisher-simple-http

Not final version - see issue:

electron-userland/electron-builder#3261

Usage:

Sample configuration ( package.json ):

{
  "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"
    }
  }
}

Default configuration:

{
  "path": "/${name}/${os}/${arch}/",
  "hostname": "localhost",
  "protocol": "http",
  "port": 80,
  "//": "or 443 if protocol is set to https",
  "method": "POST",
  "connectionOptions": {},
  "headers": {}
}

Simple server implementation:

https://github.com/zalewskip123/electron-publisher-simple-http-server

About

Simple http publisher provider for electron


Languages

Language:JavaScript 100.0%