Ongoing implementation of a Squirrel release server (mostly for Electron applications), written in ASP.Net 6.0.
This WebApp aims to provide the endpoints that your Squirrel-powered app needs in order to:
- check for updates;
- download the updates;
- check for version existence.
As you can see through the code, this default implementation exploits the Azure Blob Storage and their API.
Currently tested on Windows platform only.
Route:
/releases/{product}/{platform}/{architecture}/{version}/updates/RELEASES
When using autoUpdater
in your application, just set:
// ReleaseServer/releases/{product}/{platform}/{arch}/{currentAppVersion}/updates
autoUpdater.setFeedURL('https://server/releases/my-sensational-app/win32/x64/0.0.1/updates');
Route:
/check/{product}/{platform}/{architecture}/{version}
Returns a 200
status if the version exists, otherwise a 404
.
This endpoint is not related to a Squirrel-relevant use case
Nevertheless it might be useful (e.g. for decision-making checks in a DevOps release pipeline).
Route:
/download/{product}/{platform}/{architecture}
Redirects to the full download url (e.g: .exe) of the product
's latest version.
If no matching app is found, you get a 404
.