mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-09-11 17:16:18 -07:00
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:
@@ -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/);
|
||||
});
|
||||
|
||||
@@ -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.`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user