feat(anime): add version-aware extension updates

- Compare installed APK version codes before offering updates
- Add update status labels and an Update all action
This commit is contained in:
2026-09-02 19:10:03 -07:00
parent 484a9e047d
commit 18beac13f4
22 changed files with 887 additions and 81 deletions
@@ -29,3 +29,19 @@ test('anime browser preference IPC coerces values at the renderer boundary', ()
['source', 'invalid', ''],
]);
});
test('anime browser bulk update IPC returns the runtime result', async () => {
const handlers = new Map<string, (event: unknown, ...args: unknown[]) => unknown>();
registerAnimeBrowserIpcHandlers({
ipcMain: {
handle: (channel, listener) => handlers.set(channel, listener),
},
runtime: {
updateAllExtensions: async () => 3,
} as never,
});
const updateAll = handlers.get(IPC_CHANNELS.request.animeBrowserUpdateAllExtensions);
assert.ok(updateAll);
assert.equal(await updateAll({}), 3);
});