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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user