Closed YoavCodes closed 5 months ago
Two paths:
Open questions:
dev
distribution
// version.json -- in the app bundle { "version": "1.0.0", "channel": "stable", "url": "http://example.com/update.json" } // update.json -- hosted somewhere { "baseUrl": "http://example.com/updates/", "channels": { "stable": { "1.0.0": { "notes": "This is a stable release", "targets": { "windows-x64": { "bundle": { "checksum": "1234567890abcdef", "filesize": 102900 }, "app": { "checksum": "1234567890abcdef", "filesize": 102400 }, "bun": { "checksum": "abcdef1234567890", "filesize": 20480 }, "webview": { "checksum": "fedcba0987654321", "filesize": 30720 } }, "linux-arm64": { "bundle": { "checksum": "1234567890abcdef", "filesize": 102900 }, "app": { "checksum": "0987654321fedcba", "filesize": 51200 }, "bun": { "checksum": "abcdef1234567890", "filesize": 15360 }, "webview": { "checksum": "1234567890abcdef", "filesize": 20480 } } } } }, "canary": { "1.1.0": { "notes": "This is a beta release", "targets": { // Similar structure for canary builds } } }, "dev": { "1.2.0": { "notes": "This is a dev release", "targets": { // Similar structure for dev builds } } } } }
Tasks:
the flow is a bit different but wrapped up the first implementation of updates last week. will write up proper docs soon.
Goal
Two paths:
Open questions:
Build flow
Option 1: Global runtime cache
dev
distribution
Option 2: Bundled runtimes
dev
distribution
Update flow
Files
Tasks: