SPC.Update.Server maintains a release catalog, accepts signed packages, and helps clients find compatible updates. Packages are installed on the client side.
Publish from the repository root with the .NET 11 SDK. Run the published application with ASP.NET Core Runtime 11.
dotnet publish SPC.Update.Server/SPC.Update.Server.csproj -c Release -o publish/server
In persistent appsettings.Production.json, set Database:Provider (Postgre, SQLServer, or SQLite), the matching ConnectionStrings entry, and the storage directories. Supply secrets through the service environment. Configure HTTPS for the UI and a separate HTTPS address that requires mTLS for the API.
From the published directory with production settings loaded, run dotnet SPC.Update.Server.dll --migrate-only, then run dotnet SPC.Update.Server.dll as a service. Check GET /health on the UI address and verify database connectivity separately. For Ubuntu x64, use the supplied deploy/scdeploy/spc-update-server.yaml profile.
Publish the archive with its signed manifest. An update check selects a package by channel, platform, and exact runtime identifier (RID). For private packages, the server issues a five-minute download ticket. HTTP Range allows clients to resume downloads. Installation authorization is checked separately.
| Request | Purpose |
|---|---|
POST /api/v1/releases |
Publish an archive and manifest |
POST /api/v1/updates/check |
Check for an update |
POST /api/v1/updates/report |
Report an installation attempt |
POST /api/v1/downloads/authorize |
Request a ticket for packageId |
GET /api/v1/downloads/{packageId}?ticket=… |
Download using a ticket |