Install Linux updates in place and restart

The Linux app now downloads the release archive to a temporary folder,
verifies its checksum, extracts it beside the install folder, swaps the
bundle in with two renames (keeping <install>.previous for rollback) and
relaunches. A read-only install location is reported with how to fix it.
The prompt and Settings button say "Install and restart".
This commit is contained in:
2026-11-09 19:40:52 +00:00
parent 15939fcf09
commit 277c691b2c
7 changed files with 320 additions and 34 deletions
@@ -5,18 +5,24 @@ import 'package:pipelines_app/features/updates/launch_update.dart';
void main() {
test('web compares release identity and ignores Android metadata', () {
expect(
webUpdateFor('web-current',
'{"schema":1,"platform":"web","buildId":"web-current"}'),
webUpdateFor(
'web-current',
'{"schema":1,"platform":"web","buildId":"web-current"}',
),
isNull,
);
expect(
webUpdateFor('web-current',
'{"schema":1,"platform":"web","buildId":"web-new"}'),
webUpdateFor(
'web-current',
'{"schema":1,"platform":"web","buildId":"web-new"}',
),
isA<WebLaunchUpdate>(),
);
expect(
webUpdateFor('web-current',
'{"schema":1,"platform":"android","buildId":"web-new"}'),
webUpdateFor(
'web-current',
'{"schema":1,"platform":"android","buildId":"web-new"}',
),
isNull,
);
expect(webUpdateFor('', '{"buildId":"web-new"}'), isNull);