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

Latest commit

 

History

History
24 lines (15 loc) · 773 Bytes

update-osx.md

File metadata and controls

24 lines (15 loc) · 773 Bytes

Auto-updater on OS X

Nuts provides a backend for the Squirrel.Mac auto-updater. Squirrel.Mac is integrated by default in Electron applications.

Endpoint

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.

Electron Example

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('https://download.myapp.com/update/'+platform+'/'+version);