fix(anime): harden bridge updates and startup lifecycle

- Wait for in-flight starts and stop sidecars before replacement
- Restore the previous bundle when activation fails
- Clarify unchecked managed bridge status and bump the AUR package release
This commit is contained in:
2026-09-02 00:40:58 -07:00
parent 2bcb6c7e98
commit 835a09fa67
9 changed files with 172 additions and 17 deletions
+12 -4
View File
@@ -84,8 +84,16 @@ test('describeBridgeInstall says who updates the bridge', () => {
}),
/v1\.0\.6\.0 is available/,
);
assert.match(
describeBridgeInstall({ origin: 'managed', version: null, dir: '/d', updateAvailable: null }),
/unknown version.*up to date/,
);
});
test('describeBridgeInstall does not treat an unchecked managed bridge as up to date', () => {
const description = describeBridgeInstall({
origin: 'managed',
version: null,
dir: '/d',
updateAvailable: null,
});
assert.match(description, /unknown version.*checks this installation for updates after startup/);
assert.doesNotMatch(description, /up to date/);
});
+1 -1
View File
@@ -45,5 +45,5 @@ export function describeBridgeInstall(install: AnimeBrowserBridgeInstall | null)
if (install.updateAvailable !== null) {
return `M-Extension-Server ${version} in ${install.dir}, downloaded by SubMiner. ${install.updateAvailable} is available from the banner above.`;
}
return `M-Extension-Server ${version} in ${install.dir}, downloaded by SubMiner and up to date.`;
return `M-Extension-Server ${version} in ${install.dir}, downloaded by SubMiner. SubMiner checks this installation for updates after startup.`;
}