Skip to content
This repository has been archived by the owner on Aug 22, 2021. It is now read-only.
/ Pixtron Public archive

A (very) simple update server for electron-updater

License

Notifications You must be signed in to change notification settings

ShuttleBrowser/Pixtron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pixtron

Pixtron is a (very) simple update server for electron-updater.

Installation

# clone the repository
$ git clone https://github.com/ShuttleBrowser/pixtron.git

# change the working directory to pixtron
$ cd pixtron

# install the requirements
$ npm i

# start pixtron
$ npm start

Upload releases

Copy the generated files by electron-builder in releases/latest/<platform>,

or

In config.json, add a password and a repository. Change the names of the files. Once it's done, go to:

update.your-super-server.com/upload/<the release tag>/<your password (in config file)>

config.json :

{
  "releases": [
    {
      "platform": "win32",
      "files": [
        "latest.yml",
        "MySuperApp-Windows.exe",
        "MySuperApp-Windows.exe.blockmap"
      ]
    },
    {
      "platform": "linux",
      "files": [
        "latest-linux.yml",
        "MySuperApp-Linux-x86_64.AppImage"
      ]
    },
    {
      "platform": "mac",
      "files": [
        "latest-mac.yml",
        "MySuperApp-MacOS.dmg",
        "MySuperApp-MacOS.dmg.blockmap"
      ]
    }
  ],

  "githubRepo": "MyRepo/MySuperApp",
  "password": "mySuperPassword"
}

Use in electron

Read the electron-updater documentation here.

autoUpdater.setFeedURL({
    provider:  'generic',
	url:  `http://your-update-server/update/latest/${process.platform}/`
})

About

A (very) simple update server for electron-updater

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published