Nuts provides a backend for the Squirrel.Mac auto-updater. Squirrel.Mac is integrated by default in Electron applications.
The endpoint for Squirrel.Mac is http://download.myapp.com/update/osx/:currentVersion
.
This url requires different parameters to return a correct version: version
and platform
.
For example with Electron's auto-updater
module:
var app = require('app');
var os = require('os');
var autoUpdater = require('auto-updater');
var platform = os.platform() + '_' + os.arch();
var version = app.getVersion();
autoUpdater.setFeedURL('http://download.myapp.com/update/'+platform+'/'+version);