TypeScript-based Electron downloads and updates server that uses GitHub to serve files.
- Create a
.env
file in the root with these variables;ACCOUNT
Repository account nameREPOSITORY
Repository nameTOKEN
(optional) GitHub Private Token for private repos
npm install
npm run preview
- Adjust the
private.test.ts
to match your own repo's release files npm run test
- It is simply a
node.http
handler, use anywhere you like - Vercel can deploy and run it as-is using the provided config
- Homepage
Route:/
Description: A nice frontend to show the latest version and all downloads - API
Route:/api/semver
Description: An endpoint to get the latest version number - Download
Route:/download/:platform
Description: Downloads for most Electron platforms - Electron autoUpdater
Route:/update/:platform/:version
Description: Electron autoUpdater endpoint for Mac and Windows - Update Metadata
Route:/update/:platform/:version/RELEASES
Description: Electron autoUpdaternupkg
endpoint for Windows
OS | Filetype | As | Supported |
---|---|---|---|
Linux | .deb | Download | Yes |
Linux | .rpm | Download | Yes |
Linux | .AppImage | Download | Yes |
Linux | .snap | Download | Yes |
Linux | .flatpak | Download | No |
Windows | .exe | Download | Yes |
Windows | .exe | Download | No |
Windows | .nupkg | Update | Yes |
Mac | .dmg | Download | Yes |
Mac | .zip | Download | Yes |
Mac | .zip | Update | Yes |
Shamelessly based on and made possible thanks to;