Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

ExodusMovement/exodus-update-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exodus-update-server

Installation

$ git clone [email protected]:ExodusMovement/exodus-update-server.git
$ cd exodus-update-server
$ npm install

Data directory

./data
├── announcements.json
└─┬ releases
  ├── Exodus-1.0.0-darwin-x64.dmg
  ├── Exodus-1.0.0-darwin-x64.zip
  ├── Exodus-1.0.0-linux-ia32.zip
  ├── Exodus-1.0.0-linux-x64.zip
  ├── Exodus-1.0.0-win32-ia32.exe
  ├── Exodus-1.0.0-win32-ia32-delta.nupkg
  ├── Exodus-1.0.0-win32-ia32-full.nupkg
  ├── Exodus-1.0.0-win32-x64.exe
  ├── Exodus-1.0.0-win32-x64-delta.nupkg
  ├── Exodus-1.0.0-win32-x64-full.nupkg
  └── ... and so on

announcements.json

Simple example:

{
  "<1.0.0": {
    "darwin": {
      "x64": [{
        "id": "<1.0.0-darwin-x64-0",
        "title": "Special Exodus Announcement",
        "message": "Version 1.0.0 was released! Update immediately!",
        "force": true
      }]
    },
    "linux": {
      "x64": [{
        "id": "<1.0.0-linux-x64-0",
        "title": "Special Exodus Announcement",
        "message": "Version 1.0.0 was released! Update immediately!",
        "force": true
      }]
    },
    "win32": {
      "x64": [{
        "id": "<1.0.0-win32-x64-0",
        "title": "Special Exodus Announcement",
        "message": "Version 1.0.0 was released! Update immediately!",
        "force": true
      }]
    }
  }
}

Router

  • /announcement/:platform/:arch/:version
  • /update/:platform/:arch/:version
  • /update/:platform/:arch/:version/RELEASES
  • /download/:filename
  • /download/:platform/:arch/:version

Programmatic API

const express = require('express')
const EUS = require('exodus-update-server')

const app = express()
app.use('/desktop', EUS.Router({ datadir: '...' }))

app.listen(...)

Default server

You can start default server with npm start.

Available options:

  • datadir (by default data directory)
  • path (by default desktop)
  • port (by default 8000)
$ npm start -- --datadir=~/exodus-datadir --path='/desktop-updates' --port=80

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published